Control Flow
Control Flow
Section titled “Control Flow”NXL uses {} to define blocks.
A conditional has the form:
if age >= 18 { print("Adult")} else { print("Minor")}Blocks are represented in the AST and environments provide the mechanism for nested scopes.
Current status
Section titled “Current status”Conditional syntax can be represented by the parser and AST, but conditional runtime execution is still being developed.
The current runtime roadmap includes:
- Boolean expression evaluation
- Comparison evaluation
if/elseexecution- Loops
breakcontinue
This distinction is important:
Parser support ≠ Runtime support
A language feature normally needs to exist across multiple layers.