or method
Implementation
Expr or() {
Expr expr = and();
while (match([TokenType.OR])) {
Token operator = previous();
Expr right = and();
expr = Logical(expr, operator, right);
}
return expr;
}
Expr or() {
Expr expr = and();
while (match([TokenType.OR])) {
Token operator = previous();
Expr right = and();
expr = Logical(expr, operator, right);
}
return expr;
}