aboutsummaryrefslogtreecommitdiff
path: root/interpreter.py
diff options
context:
space:
mode:
authormryouse2022-06-12 01:17:51 +0000
committermryouse2022-06-12 01:17:51 +0000
commit6fcf1dd36c30368b2833cfb517208f67aaac98e5 (patch)
tree514b324d16a13ddb9cb33ab834164b346a01188b /interpreter.py
parent891173406138eb9e48e58d84db702d1c16d8846c (diff)
rename input to read-line
Diffstat (limited to 'interpreter.py')
-rw-r--r--interpreter.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/interpreter.py b/interpreter.py
index 5319a11..a2d7b08 100644
--- a/interpreter.py
+++ b/interpreter.py
@@ -706,11 +706,12 @@ def interpretClear(symbol, args, env):
GLOBALS.register("clear", Builtin(interpretClear, []))
-def interpretInput(symbol, args, env):
+def interpretReadLine(symbol, args, env):
ret = input(args[0].value)
return String(ret)
-GLOBALS.register("input", Builtin(interpretInput, [Arg("prompt", T.String, False, False)]))
+GLOBALS.register("read-line", Builtin(interpretReadLine, [Arg("prompt", T.String, False, False)]))
+
def interpretAppend(symbol, args, env):
lst = args[0]