summaryrefslogtreecommitdiffstats
path: root/src/com/craftinginterpreters/lox/Lox.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/craftinginterpreters/lox/Lox.java')
-rw-r--r--src/com/craftinginterpreters/lox/Lox.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/craftinginterpreters/lox/Lox.java b/src/com/craftinginterpreters/lox/Lox.java
index a3334e3..bca117e 100644
--- a/src/com/craftinginterpreters/lox/Lox.java
+++ b/src/com/craftinginterpreters/lox/Lox.java
@@ -53,13 +53,13 @@ public class Lox {
Scanner scanner = new Scanner(source);
List<Token> tokens = scanner.scanTokens();
Parser parser = new Parser(tokens);
- Expr expression = parser.parse();
+ List<Stmt> statements = parser.parse();
// Stop if there was a syntax error
if (hadError)
return;
- interpreter.interpret(expression);
+ interpreter.interpret(statements);
}
public static void error(int line, String message) {