logicalAnd method

AstNode logicalAnd()

Implementation

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