KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > persistence > antlr > BlockWithImpliedExitPath


1 package persistence.antlr;
2
3 /* ANTLR Translator Generator
4  * Project led by Terence Parr at http://www.jGuru.com
5  * Software rights: http://www.antlr.org/license.html
6  *
7  */

8
9 abstract class BlockWithImpliedExitPath extends AlternativeBlock {
10     protected int exitLookaheadDepth; // lookahead needed to handle optional path
11
/** lookahead to bypass block; set
12      * by deterministic(). 1..k of Lookahead
13      */

14     protected Lookahead[] exitCache = new Lookahead[grammar.maxk + 1];
15
16     public BlockWithImpliedExitPath(Grammar g) {
17         super(g);
18     }
19
20     public BlockWithImpliedExitPath(Grammar g, Token start) {
21         super(g, start, false);
22     }
23 }
24
Popular Tags