Lines Matching defs:set
163 * until we find one in the resynchronization set--loosely the set of tokens
180 // token set so nothing got consumed. Consume a single token
213 * resynchronization set of the current rule.
216 * with an empty alternative), then the expected set includes what follows
236 * compare token set at the start of the loop and at each iteration. If for
510 * `LA(1)==';'` is in the set of tokens that can follow the `')'` token
762 * Compute the error recovery set for the current rule. During
763 * rule invocation, the parser pushes the set of tokens that can
767 * This local follow set only includes tokens
777 * You don't want the exact set of viable next tokens because the
791 * At each rule invocation, the set of tokens that could follow
805 * depth | follow set | start of rule execution
816 * (context-sensitive or otherwise). We need the combined set of
817 * all context-sensitive FOLLOW sets--the set of all tokens that
822 * In this case, for input "[]", LA(1) is ']' and in the set, so we would
827 * set). The rule exception handler tries to recover, but finds
828 * the same recovery set and doesn't consume anything. Rule b
833 * for the token that was a member of the recovery set.
884 * Consume tokens until one matches the given token set.
886 protected function consumeUntil(Parser $recognizer, IntervalSet $set) : void
896 while ($ttype !== Token::EOF && !$set->contains($ttype)) {