Lines Matching defs:set

98      *  to the set of symbols that can follow rule ref.
144 // if current token is consistent with what could come after set
152 // in follow set to indicate that the fall of the start symbol is
153 // in the set (EOF can follow).
170 * 3. consume until token found in resynch set
284 " expecting set "+mse.expecting;
289 " expecting set "+mse.expecting;
356 // where LT(1) is in the recovery token set so nothing is
377 /* Compute the error recovery set for the current rule. During
378 * rule invocation, the parser pushes the set of tokens that can
381 * enclosing rule. This local follow set only includes tokens
391 * You don't want the exact set of viable next tokens because the
405 * At each rule invocation, the set of tokens that could follow
419 * depth local follow set after call to rule
429 * (context-sensitive or otherwise). We need the combined set of
430 * all context-sensitive FOLLOW sets--the set of all tokens that
435 * In this case, for input "[]", LA(1) is in this set so we would
440 * set). The rule exception handler tries to recover, but finds
441 * the same recovery set and doesn't consume anything. Rule b
446 * for the token that was a member of the recovery set.
472 /** Compute the context-sensitive FOLLOW set for current rule.
473 * This is set of token types that can follow a specific rule
474 * reference given a specific call chain. You get the set of
481 * where x in T* and alpha, beta in V*; T is set of terminals and
482 * V is the set of terminals and nonterminals. In other words,
483 * FOLLOW(r) is the set of all tokens that can possibly follow
487 * than covering superset) set of following tokens.
518 * You want the exact viable token set when recovering from a
520 * the viable next token set, then you know there is most likely
529 // if EOR is in set i. When it sees a set w/o EOR, it stops adding.
545 // Only leave EOR in set if at top (start rule); this lets
585 * is in the set of tokens that can follow the ')' token
684 /** Consume tokens until one matches the given token set */
685 public void consumeUntil(IntStream input, BitSet set) {
686 //System.out.println("consumeUntil("+set.toString(getTokenNames())+")");
688 while (ttype != Token.EOF && !set.member(ttype) ) {
695 /** Push a rule's follow set using our own hardcoded stack */