Whitespace is an imperative, stack based esoteric regular programming language. It only allows three symbols: [Space](" ","S"), [Tab]("\t","T") and [Newline]("\n","L"), which makes the source code invisible.
The full documentation can be found here: http://compsoc.dur.ac.uk/whitespace/tutorial.html, but here is a general breakdown:
[Instruction Modification Parameter][Command][Parameter ended by L]
Here is a nicer and more intuitive representation:
Simply do:
install.packages("devtools")
library(devtools)
install_github("artificialbreeze/whitespace")
Create a DFA (Deterministic Finite-State automaton) with code=your code
argument:
dfa1=dfa(" \t\t\t\t\t\t\n\t\n \n\n\n")
Now, parse the syntax:
dfa1.parsed=parse(dfa1)
Finally, compile and run the example:
dfa1.compiled=compile(dfa1.parse)
The above code should output:
# Program output: ?
# Program stop
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.