public function parse(Parser $parser) { $parser->Match(Lexer::T_IDENTIFIER); $parser->Match(Lexer::T_OPEN_PARENTHESIS); $this->dateExpression = $parser->ArithmeticExpression(); $parser->Match(Lexer::T_COMMA); $this->formatChar = $parser->ArithmeticExpression(); $parser->Match(Lexer::T_CLOSE_PARENTHESIS); }