Shell.py

mail@pastecode.io avatar
unknown
python
2 years ago
187 B
1
Indexable
Never
# put the shell in a sepreate script


import basic

while True:
text = input('basic > ')
result,error = basic.Run('<stdin>', text)

if error: print(error.as_String())
else: print(result)