Hello world
This is usually the first thing one does when learning any programming language. Just print something to the console.
- With your favorite plain text editor, create a new file called hello.lil
-
Add the following to the file:
print "Hello world"
- Open a Terminal window, navigate to the folder where the file is, and type the following:
-
lil hello.lil --run
The output should be: Hello world
-
If the executable can't be found, add its containing folder to your PATH or write the full path:
/full/path/to/lil hello.lil --run