diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2017-11-13 04:54:09 -0500 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2017-11-13 04:54:09 -0500 |
| commit | 9e693be5cd3d50f2f9c86edd5c021130bc3066c2 (patch) | |
| tree | 7a54b768f695d9fc0ba9ba165e7854ff8d169fea /bin/actinide-repl | |
| parent | 67738039c33956cc80444dce5543c8fa09e8bc9d (diff) | |
Distinguish EOF and () in read()
Diffstat (limited to 'bin/actinide-repl')
| -rwxr-xr-x | bin/actinide-repl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/actinide-repl b/bin/actinide-repl index de19617..c4343b6 100755 --- a/bin/actinide-repl +++ b/bin/actinide-repl @@ -3,6 +3,7 @@ import sys import actinide as a +import actinide.reader as ar import actinide.ports as ap import actinide.types as at @@ -12,7 +13,7 @@ def repl(session, port): sys.stdout.write("> ") sys.stdout.flush() form = session.read(port) - if form is None: + if form is ar.EOF: print() return 0 results = session.eval(form) |
