Evaluating Expressions 7

This commit is contained in:
nazrin 2025-05-31 17:44:11 +00:00
parent d937226553
commit f4338ba51f
6 changed files with 182 additions and 63 deletions

View file

@ -6,7 +6,7 @@ import jlox.token;
import jlox.tokentype;
import jlox.util;
import jlox.expr;
import jlox.main : loxError = error;
import jlox.main;
class Parser{
private Token[] tokens;
@ -54,7 +54,7 @@ class Parser{
}
}
private ParseError error(Token token, string message){
loxError(token, message);
Lox.error(token, message);
return new ParseError("hello");
}
private void synchronize(){