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: class SynPredBlock extends AlternativeBlock {
09:
10: public SynPredBlock(Grammar g) {
11: super (g);
12: }
13:
14: public SynPredBlock(Grammar g, Token start) {
15: super (g, start, false);
16: }
17:
18: public void generate(Context context) {
19: grammar.generator.gen(this , context);
20: }
21:
22: public Lookahead look(int k) {
23: return grammar.theLLkAnalyzer.look(k, this );
24: }
25:
26: public String toString() {
27: return super .toString() + "=>";
28: }
29: }
|