Skip to content

Syntax

NXL uses familiar symbols while keeping block structure explicit with {}.

if age >= 18 {
print("Adult")
}

Single-line comments use //:

// This is a comment

Identifiers can look like:

name
age
my_variable

The lexer recognizes:

( ) { } [ ] , . :

NXL source can contain strings such as:

"Hello"
'Tanmoy'

Examples include:

123
42.5