Lines Matching defs:set

45 from antlr3.compat import set, frozenset, reversed
50 The set of fields needed by an abstract recognizer to recognize input
59 # Track the set of token types that can follow any rule invocation.
99 # emissions, then set this to the last token to be matched or
121 ## You can set the text for the current token to override what is in
122 # the input char buffer. Use setText() or can set this instance var.
208 to the set of symbols that can follow rule ref.
249 follow = follow - set([EOR_TOKEN_TYPE])
251 # if current token is consistent with what could come after set
270 3. consume until token found in resynch set
379 + " expecting set " \
385 + " expecting set " \
463 # where LT(1) is in the recovery token set so nothing is
496 Compute the error recovery set for the current rule. During
497 rule invocation, the parser pushes the set of tokens that can
500 enclosing rule. This local follow set only includes tokens
510 You don't want the exact set of viable next tokens because the
524 At each rule invocation, the set of tokens that could follow
538 depth local follow set after call to rule
548 (context-sensitive or otherwise). We need the combined set of
549 all context-sensitive FOLLOW sets--the set of all tokens that
554 In this case, for input "[]", LA(1) is in this set so we would
559 set). The rule exception handler tries to recover, but finds
560 the same recovery set and doesn't consume anything. Rule b
565 for the token that was a member of the recovery set.
593 Compute the context-sensitive FOLLOW set for current rule.
594 This is set of token types that can follow a specific rule
595 reference given a specific call chain. You get the set of
602 where x in T* and alpha, beta in V*; T is set of terminals and
603 V is the set of terminals and nonterminals. In other words,
604 FOLLOW(r) is the set of all tokens that can possibly follow
608 than covering superset) set of following tokens.
639 You want the exact viable token set when recovering from a
641 the viable next token set, then you know there is most likely
650 followSet = set()
656 # Only leave EOR in set if at top (start rule); this lets
695 is in the set of tokens that can follow the ')' token
786 ## This code is factored out from mismatched token and mismatched set
802 Consume tokens until one matches the given token or token set
804 tokenTypes can be a single token type or a set of token types
808 if not isinstance(tokenTypes, (set, frozenset)):
1134 a lexer rule finishes with token set to SKIP_TOKEN. Recall that
1165 use that to set the token's text. Override this method to emit
1303 + " expecting set " \
1309 + " expecting set " \
1315 + " expecting set " \