or method

Expr or()

Implementation

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