Whitespace (programming language): Difference between revisions

Content deleted Content added
No edit summary
Example number was `11`, which could be confused with binary at first glance.
Line 14:
== Syntax ==
Commands are composed of sequences of spaces, tab stops and linefeeds. For example, tab-space-space-space performs arithmetic addition of the top two elements on the stack.
Data is represented in [[Binary code|binary]] using spaces (0) and tabs (1), followed by a linefeed; thus, spacetab-space-space-tab-space-tab-tab-linefeed is the binary number 00010111001011, which is 1175 in decimal. All other characters are ignored and thus can be used for comments.
 
The sign of a number is given by its first character, [Space] for positive and [Tab] for negative.<ref name="whitespace" />