Lines Matching refs:follow
54 static void * match (pANTLR3_BASE_RECOGNIZER recognizer, ANTLR3_UINT32 ttype, pANTLR3_BITSET_LIST follow);
56 static void mismatch (pANTLR3_BASE_RECOGNIZER recognizer, ANTLR3_UINT32 ttype, pANTLR3_BITSET_LIST follow);
58 static ANTLR3_BOOLEAN mismatchIsMissingToken (pANTLR3_BASE_RECOGNIZER recognizer, pANTLR3_INT_STREAM is, pANTLR3_BITSET_LIST follow);
64 static void * recoverFromMismatchedToken (pANTLR3_BASE_RECOGNIZER recognizer, ANTLR3_UINT32 ttype, pANTLR3_BITSET_LIST follow);
65 static void * recoverFromMismatchedSet (pANTLR3_BASE_RECOGNIZER recognizer, pANTLR3_BITSET_LIST follow);
66 static ANTLR3_BOOLEAN recoverFromMismatchedElement(pANTLR3_BASE_RECOGNIZER recognizer, pANTLR3_BITSET_LIST follow);
80 ANTLR3_UINT32 expectedTokenType, pANTLR3_BITSET_LIST follow);
412 /// symbols that can follow rule ref.
416 ANTLR3_UINT32 ttype, pANTLR3_BITSET_LIST follow)
478 matchedSymbol = recognizer->recoverFromMismatchedToken(recognizer, ttype, follow);
552 mismatchIsMissingToken(pANTLR3_BASE_RECOGNIZER recognizer, pANTLR3_INT_STREAM is, pANTLR3_BITSET_LIST follow)
558 if (follow == NULL)
560 // There is no information about the tokens that can follow the last one
562 // follow set and does not indicate a missing token. We will just consume this
576 followClone = antlr3BitsetLoad(follow);
582 // Compute what can follow this grammar reference
586 // EOR can follow, but if we are not the start symbol, we
594 // Now compute the visiable tokens that can follow this rule, according to context
595 // and make them part of the follow set.
606 /// in follow set to indicate that the fall of the start symbol is
607 /// in the set (EOF can follow).
634 /// differently. Override and call mismatchRecover(input, ttype, follow)
642 mismatch(pANTLR3_BASE_RECOGNIZER recognizer, ANTLR3_UINT32 ttype, pANTLR3_BITSET_LIST follow)
685 if (mismatchIsMissingToken(recognizer, is, follow))
789 /// follow that rule reference on the stack; this amounts to
791 /// enclosing rule. This local follow set only includes tokens
800 /// can legally follow a call to r *or* any rule that called r.
815 /// At each rule invocation, the set of tokens that could follow
817 /// follow sets:
827 /// and, hence, the follow context stack is:
829 /// depth local follow set after call to rule
841 /// could follow any reference in the call chain. We need to
887 /// This is the set of token types that can follow a specific rule
897 /// FOLLOW(r) is the set of all tokens that can possibly follow
914 /// FOLLOW sets are precisely what could follow a rule reference.
928 /// What can follow that specific nested ref to atom? Exactly ')'
972 // if we have to include the follow(start rule); I.E., EOF
1322 // Used to compute the follow set of tokens
1424 /// is in the set of tokens that can follow the ')' token
1432 recoverFromMismatchedToken (pANTLR3_BASE_RECOGNIZER recognizer, ANTLR3_UINT32 ttype, pANTLR3_BITSET_LIST follow)
1526 if (mismatchIsMissingToken(recognizer, is, follow))
1530 matchedSymbol = recognizer->getMissingSymbol(recognizer, is, recognizer->state->exception, ttype, follow);
1555 recoverFromMismatchedSet (pANTLR3_BASE_RECOGNIZER recognizer, pANTLR3_BITSET_LIST follow)
1588 if (recognizer->mismatchIsMissingToken(recognizer, is, follow) == ANTLR3_TRUE)
1592 matchedSymbol = recognizer->getMissingSymbol(recognizer, is, recognizer->state->exception, ANTLR3_TOKEN_INVALID, follow);
1622 pANTLR3_BITSET follow;
1653 follow = antlr3BitsetLoad(followBits);
1655 if (follow == NULL)
1657 /* The follow set is NULL, which means we don't know what can come
1665 /* We have a bitmap for the follow set, hence we can compute
1666 * what can follow this grammar element reference.
1668 if (follow->isMember(follow, ANTLR3_EOR_TOKEN_TYPE) == ANTLR3_TRUE)
1671 * to follow this reference.
1677 follow->remove(follow, ANTLR3_EOR_TOKEN_TYPE);
1679 /* We now have the computed set of what can follow the current token
1684 * that could follow the current grammar reference. If it looks like it
1688 if ( follow->isMember(follow, is->_LA(is, 1)) == ANTLR3_TRUE)
1693 if (follow != NULL)
1695 follow->free(follow);
1702 if (follow != NULL)
1704 follow->free(follow);
2166 ANTLR3_UINT32 expectedTokenType, pANTLR3_BITSET_LIST follow)