Skip to main content


Literals are primitive values like booleans, numbers, etc.


Booleans, using the bool type, can only two values, true or false.

let x: bool = true


Numeric literals can be either integers, or floating points, using int and float types respectively. Currently, Lesma assumes all numeric values to be signed. Both types are 64 bits.

let x: int = 5
let pi: float = 3.14

String Literals

Strings, using the str type, are enclosed in double-quotes ". They can contain both ASCII and UTF-8 characters.

let hello: str = "Hello World!"