KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > persistence > antlr > ZeroOrMoreBlock


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 class ZeroOrMoreBlock extends BlockWithImpliedExitPath {
10
11     public ZeroOrMoreBlock(Grammar g) {
12         super(g);
13     }
14
15     public ZeroOrMoreBlock(Grammar g, Token start) {
16         super(g, start);
17     }
18
19     public void generate() {
20         grammar.generator.gen(this);
21     }
22
23     public Lookahead look(int k) {
24         return grammar.theLLkAnalyzer.look(k, this);
25     }
26
27     public String JavaDoc toString() {
28         return super.toString() + "*";
29     }
30 }
31
Popular Tags