From aafa74e7bce6e47052c58a663ac3f2013649711e Mon Sep 17 00:00:00 2001 From: Linus Lee Date: Thu, 24 Sep 2020 05:56:09 -0400 Subject: Get basic REPL loop working --- static/js/lang.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'static/js/lang.js') 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: -- cgit v1.2.3-70-g09d2