|
|
List Sugar
The List Sugar replaces an expression such as:
(list a b c)
With:
cons a cons b cons c nil
Else Sugar
The Else Sugar allows you to omit the 'else' keyword in if commands;
A command such as:
if expr then
Command
Will compile into:
if expr then
Command
else
x := x
Case Sugar
The Case Sugar is a Pattern Matching Command.
Syntax:
case expr of
Pattern(1) => Command(1);
Pattern(2) => Command(2);
...
Pattern(n) => Command(n)
The Execution of the Command is as follows:
Booleans Sugar
The Booleans Sugar allows you to use the keywords: true and false as literals.
false will compile into nil
true will compile into (nil)