. */ /** * 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 Doctrine_ORM_Query_Parser_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')); } }