Mishmash
Jump to navigation
Jump to search
- This is still a work in progress. It may be changed in the future.
Mishmash is a Idea developed by User:Singingbanana. There are three commands: A, X and output, but it also contains 2 variables: one and two. On initialization, one is 1 and two is 2. Operator A makes one equal to two. Operator X takes 2 arguments(x & y) and adds x to one and y to 2. Output outputs one & two.
Examples
1+2 and 1 + 7:
X(2,7)
Add more!!!
Implementations
Python 2.7 & 3.n
def a(): global one global two one = 1 two = 2 one = two def x(y, c): global one global two one = one + y two = two + c def output(): print(one, two) global one global two one = 1 two = 2
More to come when author learns other languages!
Computational class
It has bounded memory. We can move up and down, write 1 and 0, but can we erase? Is writing Zero the same as deleting? But philosophical questions aside, the language currently does not include any form of loop or recursion, so sadly it cannot handle even a truth test. It is therefore a lower class than a finite state machine.