diff options
author | Linus Lee <linus@thesephist.com> | 2020-09-24 05:56:09 -0400 |
---|---|---|
committer | Linus Lee <linus@thesephist.com> | 2020-09-24 05:56:09 -0400 |
commit | aafa74e7bce6e47052c58a663ac3f2013649711e (patch) | |
tree | 5955425fa777b42934baff342ab06dd4cb86cf9e /static/js/lang.js | |
parent | 030094045aa127e1e2a3800624c6a3e45c4c8c90 (diff) | |
download | tabloid-fake-closure-aafa74e7bce6e47052c58a663ac3f2013649711e.tar.gz tabloid-fake-closure-aafa74e7bce6e47052c58a663ac3f2013649711e.zip |
Get basic REPL loop working
Diffstat (limited to 'static/js/lang.js')
-rw-r--r-- | static/js/lang.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/static/js/lang.js b/static/js/lang.js index d5ed749..4d17b48 100644 --- a/static/js/lang.js +++ b/static/js/lang.js @@ -47,7 +47,7 @@ class Reader { */ class Wordifier { constructor(str) { - this.reader = new Reader(prog); + this.reader = new Reader(str); this.tokens = []; } wordify() { @@ -623,7 +623,7 @@ class Environment { } case N.PrintExpr: { const val = this.eval(node.val); - Runtime.print(val); + this.runtime.print(val); return val; } default: |