Functions
Functions
Section titled “Functions”Function syntax is part of the NXL AST and runtime roadmap.
The planned syntax is:
fn greet(name) { return "Hello, " + name}A function call can then look like:
print(greet(name))The current runtime milestone includes:
- Functions
- Function calls
return
Function execution is still under development.
The AST currently includes function and return statement concepts, while the interpreter is being implemented incrementally.