01: package antlr;
02:
03: /* ANTLR Translator Generator
04: * Project led by Terence Parr at http://www.cs.usfca.edu
05: * Software rights: http://www.antlr.org/license.html
06: */
07:
08: abstract class BlockWithImpliedExitPath extends AlternativeBlock {
09: protected int exitLookaheadDepth; // lookahead needed to handle optional path
10: /** lookahead to bypass block; set
11: * by deterministic(). 1..k of Lookahead
12: */
13: protected Lookahead[] exitCache = new Lookahead[grammar.maxk + 1];
14:
15: public BlockWithImpliedExitPath(Grammar g) {
16: super (g);
17: }
18:
19: public BlockWithImpliedExitPath(Grammar g, Token start) {
20: super (g, start, false);
21: }
22: }
|