deque.py
deque.py copied to clipboard
Deque-based Programming Language
If the command dose not have any direction specified, then use the last used direction. Rule110 would be: ``` 0! 0 0 0 0 0 0 0 0 0 0...
I've added several checks for the interpreter so it now can differenciate between ints, floats and strings in a language. To push the string to the deque you simply need...
1. Functions re-defined I placed the definitions of the functions out of the loop so that it's doesn't get re-defined at each instruction. 2. No more `ip+=1` everywhere I've remove...
Until now, words had to be separated by spaces only. Now, tabs (or any whitespaces work too). In addition, the code is a little bit cleaner because when using `str.split()`...