printStatement method

Stmt printStatement()

Implementation

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