// ALNOOR Documentation
Now that you know the way of things, I think I can skip the intro.
Config:
None
Then edit the "main.lsmx" file and write the following code into it:
fn main() { // Main function
func ( // Nested
string ( // Functions
"Hello World" // Argument
)
);
}
// Functions
_fn String string ( String str ) { // Function with return type String
ret str;// Return
}
_fn void func ( String str ) { // Void function
println! ( // Print
str // Parameter
);
}
This isn't too impressive on its own but as the program gets more complex,
these will prove to be very useful.
None
fn main() { // Main function
func ( // Nested
string ( // Functions
"Hello World" // Argument
)
);
}
// Functions
_fn String string ( String str ) { // Function with return type String
ret str;// Return
}
_fn void func ( String str ) { // Void function
println! ( // Print
str // Parameter
);
}