• Home
  • Raw
  • Download

Lines Matching refs:follow

230 -(id) match:(id<ANTLRIntStream>)anInput TokenType:(NSInteger)ttype Follow:(ANTLRBitSet *)follow
243 matchedSymbol = [self recoverFromMismatchedToken:anInput TokenType:ttype Follow:follow];
259 -(BOOL) mismatchIsMissingToken:(id<ANTLRIntStream>)anInput Follow:(ANTLRBitSet *) follow
261 if ( follow == nil ) {
262 // we have no information about the follow; we can only consume
266 // compute what can follow this grammar element reference
267 if ( [follow member:ANTLRTokenTypeEOR] ) {
269 follow = [follow or:viableTokensFollowingThisRule];
271 [follow remove:(ANTLRTokenTypeEOR)];
278 //System.out.println("viable tokens="+follow.toString(getTokenNames()));
282 // in follow set to indicate that the fall of the start symbol is
283 // in the set (EOF can follow).
284 if ( [follow member:[anInput LA:1]] || [follow member:ANTLRTokenTypeEOR] ) {
517 * follow that rule reference on the stack; this amounts to
519 * enclosing rule. This local follow set only includes tokens
528 * can legally follow a call to r *or* any rule that called r.
543 * At each rule invocation, the set of tokens that could follow
545 * follow sets:
555 * and, hence, the follow context stack is:
557 * depth local follow set after call to rule
569 * could follow any reference in the call chain. We need to
612 * This is set of token types that can follow a specific rule
622 * FOLLOW(r) is the set of all tokens that can possibly follow
639 * FOLLOW sets are precisely what could follow a rule reference.
653 * What can follow that specific nested ref to atom? Exactly ')'
679 System.out.println("local follow depth "+i+"="+
687 // us know if have to include follow(start rule); i.e., EOF
726 * is in the set of tokens that can follow the ')' token
731 Follow:(ANTLRBitSet *)follow
752 if ( [self mismatchIsMissingToken:anInput Follow:follow] ) {
753 …d<ANTLRToken> inserted = [self getMissingSymbol:anInput Exception:e TokenType:ttype Follow:follow];
766 Follow:(ANTLRBitSet *) follow
768 if ( [self mismatchIsMissingToken:anInput Follow:follow] ) {
772 … return [self getMissingSymbol:anInput Exception:e TokenType:ANTLRTokenTypeInvalid Follow:follow];
814 Follow:(ANTLRBitSet *)follow
842 /** Push a rule's follow set using our own hardcoded stack */
868 NSLog( @"Attempted to pop a follow when none exists on the stack\n" );