aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormryouse2022-05-12 02:41:27 +0000
committermryouse2022-05-12 02:41:27 +0000
commita2e9d93ed0bd0c287b270fd2eebac516f63e2b84 (patch)
treeefe3aa360f496f0a553b25494c0039ab0aba3e8c
parent9a8324315c74ea102e0fb0ed22c695ce78c221c7 (diff)
print lexed items nicer
-rw-r--r--repl.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/repl.py b/repl.py
index cb0657f..b7da451 100644
--- a/repl.py
+++ b/repl.py
@@ -15,7 +15,8 @@ def main():
try:
lexed = lex(inp, [])
if _get_debug():
- print(f" - LEX: {lexed}")
+ acc = " ".join([f"{l}" for l in lexed])
+ print(f" - LEX: {acc}")
parsed = parse(lexed, [])
if _get_debug():
acc = " ".join([f"{p}" for p in parsed])