2024-03-30 01:23:02 -04:00
|
|
|
|
|
|
|
def repl_loop():
|
|
|
|
while True:
|
|
|
|
raw = input("> ")
|
|
|
|
if raw == 'exit':
|
|
|
|
break
|
|
|
|
parts = raw.split(" ")
|
|
|
|
command = parts[0]
|
|
|
|
del parts[0]
|
2024-03-31 01:25:32 -04:00
|
|
|
if command in repl_commands:
|
|
|
|
repl_commands[command](parts)
|
2024-03-30 01:23:02 -04:00
|
|
|
|
|
|
|
repl_loop()
|
|
|
|
|