Lines Matching refs:symbol

150      * Match current input symbol against `ttype`. If the symbol type matches,
154 * If the symbol type does not match, {@see ANTLRErrorStrategy::recoverInline()}
157 * of the symbol returned by {@see ANTLRErrorStrategy::recoverInline()}
158 * is -1, the symbol is added to the parse tree by calling
164 * @return Token the matched symbol
167 * @throws RecognitionException If the current input symbol did not match
169 * from the mismatched symbol.
188 // if it's not the current symbol
197 * Match current input symbol as a wildcard. If the symbol type matches
201 * If the symbol type does not match, {@see ANTLRErrorStrategy::recoverInline()}
204 * of the symbol returned by {@see ANTLRErrorStrategy::recoverInline()} is -1,
205 * the symbol is added to the parse tree by calling
209 * @return Token The matched symbol.
211 * @throws RecognitionException If the current input symbol did not match
213 * recover from the mismatched symbol.
227 // if it's not the current symbol
460 * Match needs to return the current input symbol, which gets put
496 * Consume and return the {@see Parser::getCurrentToken()} current symbol.
499 * lookahead symbol, this function moves the cursor to `B` and returns
507 * If the parser is not in error recovery mode, the consumed symbol is added
510 * If the parser is in error recovery mode, the consumed symbol is
764 * Checks whether or not `symbol` can follow the current state in the
770 * return getExpectedTokens().contains(symbol);
773 * @param int $symbol The symbol type to check
775 * @return bool `true` if `symbol` can follow the current state in
778 public function isExpectedToken(int $symbol) : bool
786 if ($following->contains($symbol)) {
802 if ($following->contains($symbol)) {
809 return $following->contains(Token::EPSILON) && $symbol === Token::EOF;