Minus Basics | ||||||||||||||||||||||||||
Minus Home What is Minus? Basics Proof of Concept Extensions Implementations Examples Files Self Interpreter |
In the minimalist version of Minus there is only one operator, and that is -=, which subtracts the second argument from the first. For example if 'd' is 10 and 'e' is 4 then d-=e sets d to 6. Minus allows for the first operand to be any letter and the second operand to be any letter or a series of numbers. It is not actually necessary to accept numbers in addition to variables to become Turing complete, but it just makes the programmer's job easier. This one operator is not enough to allow the language to do anything useful. It relies on special variables to become Turing complete. Here is a list of the basic special variables.
Note that since the syntax is so simple the -= and ; are not really needed to deduce the meaning of code, they are therefor optional. And actually some unfinished interpreters require they aren't there! |