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 {}

  • print writes without a newline

  • println writes with a newline

  • error prints text in red (useful for warnings or debugging)

  • c<N changes 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;