oleobal / rockstar-interpreter

A Python interpreter for the Rockstar programming language
GNU General Public License v3.0
0 stars 0 forks source link

Make rkshell compatible with blocks #5

Open oleobal opened 6 years ago

oleobal commented 6 years ago

rkshell.py calls processInstruction on each line, making it thoroughly incompatible with blocks.

We should do like the Python shell, and keep taking in input when we see an instruction that requires it, until the instruction is complete.

Thinking about using the more high level functions would be good as well, I think. Of course, they expect a stream, but having them capture input until the end of the instruction solves the previous problem.