Syntax
Commands are composed of sequences of spaces, tab stops and linefeeds. For example, tab-space-space-space adds the top two elements on the stack. Data is represented in binary using spaces (0) and tabs (1), followed by a linefeed, space-space-space-tab-space-tab-tab-linefeed is the number 11. All other characters are ignored and thus can be used for comments.
Code is written as an Instruction Modification Parameter followed by the operation. The table below shows a list of all the IMPs in Whitespace.
IMP | Meaning |
---|---|
Stack Manipulation | |
Arithmetic | |
Heap Access | |
Flow Control | |
I/O |
Read more about this topic: Whitespace (programming Language)