printStatement method
Implementation
Stmt printStatement() {
Expr value = expression();
consume(TokenType.SEMICOLON, "Expect ';' after value.");
return Print(value);
}
Stmt printStatement() {
Expr value = expression();
consume(TokenType.SEMICOLON, "Expect ';' after value.");
return Print(value);
}