summaryrefslogtreecommitdiff
path: root/static/js/lang.js
diff options
context:
space:
mode:
authorLinus Lee <linus@thesephist.com>2020-09-24 05:56:09 -0400
committerLinus Lee <linus@thesephist.com>2020-09-24 05:56:09 -0400
commitaafa74e7bce6e47052c58a663ac3f2013649711e (patch)
tree5955425fa777b42934baff342ab06dd4cb86cf9e /static/js/lang.js
parent030094045aa127e1e2a3800624c6a3e45c4c8c90 (diff)
downloadtabloid-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.js4
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: