expressionStatement method
Implementation
AstNode expressionStatement() {
AstNode expr = expression();
consume(TokenType.semicolon, "Expect ';' after expression.");
return ExpressionStatement(expr);
}
AstNode expressionStatement() {
AstNode expr = expression();
consume(TokenType.semicolon, "Expect ';' after expression.");
return ExpressionStatement(expr);
}