Whitespace (programming language): Difference between revisions

Content deleted Content added
Syntax: Add explanation for negative number representation.
No edit summary
Line 16:
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|datename=2013-08-31|title=Whitespace"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.