Content deleted Content added
Adding local short description: "Esoteric programming language", overriding Wikidata description "esoteric programming language" (Shortdesc helper) |
ShadowMitia (talk | contribs) →Syntax: Add explanation for negative number representation. |
||
Line 15:
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, space-space-space-tab-space-tab-tab-linefeed is the binary number 0001011, which is 11 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>{{Cite web|date=2013-08-31|title=Whitespace Tutorial|url=https://web.archive.org/web/20130831070400/http://compsoc.dur.ac.uk/whitespace/tutorial.php|access-date=2021-11-07|website=web.archive.org}}</ref>
Code is written as an ''Instruction Modification Parameter'' (IMP) followed by the operation.<ref name="whitespace" /> The table below shows a list of all the IMPs in Whitespace.
|