Skip to content

Overview

Sumant Bhaskaruni edited this page Jul 5, 2017 · 4 revisions

,,, is a stack-based language. Everything in a ,,, program is either a literal or a command.

Literals

Literals are immediately pushed to the stack.

Strings

Strings are denoted with double quotes " around them.

Examples:

"this is a string"
"this is also a \"string\""

Characters

Characters are denoted with a single quote ' before them.

Examples:

'c
''

Integers

Integers are made up of digits 0-9 and possibly a starting hyphen -.

Examples:

42
-3267

Floats

Floats (floating-point numbers) are made up of digits 0-9, a period . and possibly a starting hyphen -.

4.2
-3.14

Commands

Commands are characters that perform an operation on the stack. Each command pops the amount of arguments it takes, reverses them and the applies the operation.

A detailed overview of all the commands can be found on the commands page.

Clone this wiki locally