equality method

Expr equality()

Implementation

Expr equality() {
  Expr expr = comparison();
  while (match([TokenType.BANG_EQUAL, TokenType.EQUAL_EQUAL])) {
    Token operator = previous();
    Expr right = comparison();
    expr = Binary(expr, operator, right);
  }
  return expr;
}