antlr
class AlternativeBlock extends AlternativeElement
| Field Summary | |
|---|---|
| protected Vector | alternatives |
| protected int | alti |
| protected int | altj |
| protected int | analysisAlt |
| protected boolean | doAutoGen |
| protected boolean | generateAmbigWarnings |
| boolean | greedy |
| boolean | greedySet |
| protected boolean | hasAnAction |
| protected boolean | hasASynPred |
| protected String | initAction |
| protected int | ID |
| protected String | label |
| protected static int | nblks |
| boolean | not |
| protected boolean | warnWhenFollowAmbig |
| Constructor Summary | |
|---|---|
| AlternativeBlock(Grammar g) | |
| AlternativeBlock(Grammar g, Token start, boolean not) | |
| Method Summary | |
|---|---|
| void | addAlternative(Alternative alt) |
| void | generate() |
| Alternative | getAlternativeAt(int i) |
| Vector | getAlternatives() |
| boolean | getAutoGen() |
| String | getInitAction() |
| String | getLabel() |
| Lookahead | look(int k) |
| void | prepareForAnalysis() |
| void | removeTrackingOfRuleRefs(Grammar g) Walk the syntactic predicate and, for a rule ref R, remove
the ref from the list of FOLLOW references for R (stored
in the symbol table. |
| void | setAlternatives(Vector v) |
| void | setAutoGen(boolean doAutoGen_) |
| void | setInitAction(String initAction_) |
| void | setLabel(String label_) |
| void | setOption(Token key, Token value) |
| String | toString() |