Building

To build the Lily interpreter, you will need the following:

  • CMake 3.10+

  • A C compiler (it needs to support C11, but most do now)

After cloning Lily and entering the directory, execute the following.

cmake .
cmake --build .

The above two commands work on all platforms. On some platforms, you may also be able to use make install to install Lily.

Successfully building Lily results in a lily executable in the toplevel directory.

Usage

Create a file named hello.lily and write the following.

print("Hello, world!")

Execute the script with lily hello.lily. You should see the message on your console.

The interpreter can also be invoked from the console as follows:

lily -s 'print("Hello, world!")`