expressionStatement method

Stmt expressionStatement()

Implementation

Stmt expressionStatement() {
  Expr expr = expression();
  consume(TokenType.SEMICOLON, "Expect ';' after expression.");
  return Expression(expr);
}