-
Notifications
You must be signed in to change notification settings - Fork 0
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 are immediately pushed to the stack.
Strings are denoted with double quotes "
around them.
Examples:
"this is a string"
"this is also a \"string\""
Characters are denoted with a single quote '
before them.
Examples:
'c
''
Integers are made up of digits 0-9
and possibly a starting hyphen -
.
Examples:
42
-3267
Floats (floating-point numbers) are made up of digits 0-9
, a period .
and possibly a starting hyphen -
.
4.2
-3.14
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.