logicalOr method

AstNode logicalOr()

Implementation

AstNode logicalOr() {
  AstNode expr = logicalAnd();
  while (match([TokenType.or])) {
    Token operator = previous();
    AstNode right = logicalAnd();
    expr = BinaryExpression(expr, operator, right);
  }
  return expr;
}