Lines Matching refs:follow

101      *  symbols that can follow rule ref.</p>
105 * @param {org.antlr.runtime.BitSet} [follow] set of tokens that can follow the
109 match: function(input, ttype, follow) {
121 matchedSymbol = this.recoverFromMismatchedToken(input, ttype, follow);
149 * @param {org.antlr.runtime.BitSet} [follow] set of tokens that can follow the
154 mismatchIsMissingToken: function(input, follow) {
155 if ( !follow ) {
156 // we have no information about the follow; we can only consume
160 // compute what can follow this grammar element reference
161 if ( follow.member(org.antlr.runtime.Token.EOR_TOKEN_TYPE) ) {
163 follow = follow.or(this.viableTokensFollowingThisRule);
165 follow.remove(org.antlr.runtime.Token.EOR_TOKEN_TYPE);
173 // in follow set to indicate that the fall of the start symbol is
174 // in the set (EOF can follow).
175 if ( follow.member(input.LA(1)) ||
176 follow.member(org.antlr.runtime.Token.EOR_TOKEN_TYPE) )
189 * @param {org.antlr.runtime.BitSet} [follow] set of tokens that can follow the
192 mismatch: function(input, ttype, follow) {
195 } else if ( this.mismatchIsMissingToken(input, follow) ) {
422 * follow that rule reference on the stack; this amounts to
424 * enclosing rule. This local follow set only includes tokens
433 * can legally follow a call to r *or* any rule that called r.
449 * <p>At each rule invocation, the set of tokens that could follow
451 * follow sets:</p>
463 * <p>and, hence, the follow context stack is:</p>
466 * depth local follow set after call to rule
479 * could follow any reference in the call chain. We need to
523 * <p>This is set of token types that can follow a specific rule
533 * FOLLOW(r) is the set of all tokens that can possibly follow
552 * FOLLOW sets are precisely what could follow a rule reference.
568 * <p>What can follow that specific nested ref to atom? Exactly ')'
602 // us know if have to include follow(start rule); i.e., EOF
641 * is in the set of tokens that can follow the ')' token
646 * @param {org.antlr.runtime.BitSet} follow
651 follow)
667 if ( this.mismatchIsMissingToken(input, follow) ) {
668 var inserted = this.getMissingSymbol(input, e, ttype, follow);
682 * @param {org.antlr.runtime.BitSet} follow
687 follow)
689 if ( this.mismatchIsMissingToken(input, follow) ) {
693 return this.getMissingSymbol(input, e, org.antlr.runtime.Token.INVALID_TOKEN_TYPE, follow);
733 * @param {org.antlr.runtime.BitSet} follow
739 follow)
759 * Push a rule's follow set using our own hardcoded stack.