diff options
| author | mryouse | 2022-06-12 01:17:51 +0000 |
|---|---|---|
| committer | mryouse | 2022-06-12 01:17:51 +0000 |
| commit | 6fcf1dd36c30368b2833cfb517208f67aaac98e5 (patch) | |
| tree | 514b324d16a13ddb9cb33ab834164b346a01188b | |
| parent | 891173406138eb9e48e58d84db702d1c16d8846c (diff) | |
rename input to read-line
| -rw-r--r-- | interpreter.py | 5 |
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] |
