KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > antlr > BlockWithImpliedExitPath


1 package antlr;
2
3 /* ANTLR Translator Generator
4  * Project led by Terence Parr at http://www.jGuru.com
5  * Software rights: http://www.antlr.org/RIGHTS.html
6  *
7  * $Id: //depot/code/org.antlr/main/main/antlr/BlockWithImpliedExitPath.java#5 $
8  */

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

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