Skip to content

Syntax#

goboscript has a syntax inspired from languages such as C, Rust, and Python. Whitespace and indentation has no semantic significance. Statements end in semicolons.

Comments#

# single-line comments are the only option.

Numbers#

0b111 # Binary:      8
0xFF  # Hexadecimal: 255
0o777 # Octal:       511
1024  # Decimal:     1024
3.141 # Float:       3.141

Strings#

"Hello, World!"
"Hello, \"World\"!"
"\u1234" # Unicode escape
"\n" # Newline
"\t" # Tab

Booleans#

true is replaced with 1 during compilation.

false is replaced with 0 during compilation.