Syntax Basics
var name = "World";
print << "Hello " + name;
println << "Printing in Sepynode is Cool!" c<4;
error << "Something went wrong..";
Notes
-
All lines in Sepynode end with a semicolon, except after a set of {}
-
printwrites without a newline -
printlnwrites with a newline -
errorprints text in red (useful for warnings or debugging) -
c<Nchanges the output color (explained later)
Variables
Variables are declared using the var keyword.
- No fixed type
- Scoped to their function or block
var x = 10;
var message = "Hello";
var result = x + 20;