vielleicht erinnert sich der eine oder andere noch an meine Piet-Shell (Rebecca

Code: Alles auswählen
simon@imac:~/python/hodgepodge (hg)-[default]-% ./befunge_shell.py
>>> show_stack
[]
>>> 5
>>> 5
>>> *
>>> 3
>>> *
>>> 5
>>> 2
>>> *
>>> show_stack
[75, 10]
>>> 2
>>> *
>>> show_stack
[75, 20]
>>> +
>>> 2
>>> +
>>> show_stack
[97]
>>> help
List of all available commands (type "help <command>")
======================================================
Befunge Commands
----------------
0 2 4 6 8 + * % ` < v _ " \ . # ~
1 3 5 7 9 - / ! > ^ ? | : $ , & @
Additional helper functions
----------------------------
show_stack show_pc quit help
>>> help ,
Pop value and output as ASCII character
>>> ,
a
>>> help show_stack
print the content of the stack
>>> show_stack
[]