. */ namespace Doctrine\ORM\Query\Parser; /** * StateField ::= {EmbeddedClassStateField "."}* SimpleStateField * * @author Guilherme Blanco * @author Janne Vanhala * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * @link http://www.doctrine-doctrine.org * @since 2.0 * @version $Revision$ */ class StateField extends \Doctrine\ORM\Query\ParserRule { protected $_AST = null; public function syntax() { // StateField ::= {EmbeddedClassStateField "."}* SimpleStateField $this->_AST = $this->AST('StateField'); while ($this->_parser->lookahead['type'] == \Doctrine\ORM\Query\Token::T_IDENTIFIER && $this->_isNextToken(\Doctrine\ORM\Query\Token::T_DOT)) { $this->_AST->addEmbeddedClassStateField($this->parse('EmbeddedClassStateField')); $this->_parser->match(\Doctrine\ORM\Query\Token::T_DOT); } $this->_AST->setSimpleStateField($this->parse('SimpleStateField')); } }