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