01: package persistence.antlr;
02:
03: /* ANTLR Translator Generator
04: * Project led by Terence Parr at http://www.jGuru.com
05: * Software rights: http://www.antlr.org/license.html
06: *
07: */
08:
09: /**All alternative blocks are "terminated" by BlockEndElements unless
10: * they are rule blocks (in which case they use RuleEndElement).
11: */
12: class BlockEndElement extends AlternativeElement {
13: protected boolean[] lock; // for analysis; used to avoid infinite loops
14: protected AlternativeBlock block;// ending blocks know what block they terminate
15:
16: public BlockEndElement(Grammar g) {
17: super (g);
18: lock = new boolean[g.maxk + 1];
19: }
20:
21: public Lookahead look(int k) {
22: return grammar.theLLkAnalyzer.look(k, this );
23: }
24:
25: public String toString() {
26: //return " [BlkEnd]";
27: return "";
28: }
29: }
|