Evaluating Expressions 7
This commit is contained in:
parent
d937226553
commit
f4338ba51f
6 changed files with 182 additions and 63 deletions
|
|
@ -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(){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue