Lail is a recursive acryonym that stands for Lail is Another Interpreted Language and it also means night in Arabic.
Lail is still in its early stages, and I am yet to decide on a use-case for it, it is just a hobby project that I started by following the amazing book Writing An Interpreter In Go.
- Lail should be minimal with an intuitive and sensible syntax and behaviour
- Lail should provide building blocks to extend itself.
- Built-in functions should be kept at minimal with a justifiable raison d'être.
As Lail is still under development, the language specification can change.
A Lail program is zero or more statements and expressions. A program's result is its last expression. Statements are separated by ;
.
-
Functions are first class citizens.
-
Dot Notation allows for chaining functions and for more readable code.
-
All functions are anonymous functions.
-
Assignment can be done by
let
or directly with=
. Assignment is an expression. -
Last expression in a function is its return value.
-
Identifiers can include any unicode letter plus emojis.