.Before doing so, I would like to get you guys familiar with the language itself. The advantage of *Juliar * is that it runs in your native browser. Therefore, you can run it on any computer that has Firefox, Google, Chrome, or some other modern browser. Let's get started:
- Head to https://github.com/juliarLang/juliar and click Download Zip.
- Once downloaded, extract the zip using your favorite zip software. I suggest using 7-zip if you are on Windows.You can run this software either on a server or just on your desktop. If you're planning to make a webpage and use full potential of the language, I suggest that you extract the files to server.
- Once extracted, open index.html via the Google Chrome Browser (or your favorite modern browser).
- Once the page is loaded: at the top you should see the *Juliar * Logo with sample command outputs. At the bottom you should see a line. Click on it and you should be able to enter text! (We'll call this command line.)
Alright, we're ready to practice programming!There are three things you must know about *Juliar *.
- *Juliar * commands start with * + character and ends with just * .
- Everything that's not in *command * is treated as regular text to display.
- Everything between *somecommand and * is considered the text that you want the function to modify upon.
- For many functions you can use arguments. Arguments are usually optional and expand the use of the command. In *Juliar *, you will be able to add arguments by appending equal sign to the command. If you have multiple arguments, they must be separated by a comma i.e. *somecommand=argument1, argument2 texttomodify * We won't go through any more about this topic in this tutorial, since this is meant to be only the intro to the language.
For this tutorial, I'll introduce basics of the language.Let's do this:enter "*commands *" (no quotes) and press enter. You will be able to see all available commands. Congratulations, you just wrote your one-liner program.Let's do something complex. Let's say you want to display someone's age (+/- 1 year), but you don't want to do the math yourself. Programming is now your best friend. Type in:Dan Brown's age is *subtract 2015 1964 * This should display "Dan Brown's age is 51".Yay! We did it. There are other math commands such as *add *, *subtract *, *multiply *, *divide *Let's use l33t.juliar module.If you've been following from the beginning, in the command line type *import l33t * and press enter. This will import l33t library from juliar_modules/ folder. It should say something like imported l33t. Now, type in *commands * and press enter in the command line and in the list you should see *encode * This concludes the first part of the tutorial. I hope you found it useful!