source: trunk/yao/share/antlr-2.7.7/antlr/SynPredBlock.java @ 1

Last change on this file since 1 was 1, checked in by lnalod, 15 years ago

Initial import of YAO sources

File size: 690 bytes
Line 
1package antlr;
2
3/* ANTLR Translator Generator
4 * Project led by Terence Parr at http://www.cs.usfca.edu
5 * Software rights: http://www.antlr.org/license.html
6 *
7 * $Id: //depot/code/org.antlr/release/antlr-2.7.7/antlr/SynPredBlock.java#2 $
8 */
9
10class SynPredBlock extends AlternativeBlock {
11
12    public SynPredBlock(Grammar g) {
13        super(g);
14    }
15
16    public SynPredBlock(Grammar g, Token start) {
17        super(g, start, false);
18    }
19
20    public void generate() {
21        grammar.generator.gen(this);
22    }
23
24    public Lookahead look(int k) {
25        return grammar.theLLkAnalyzer.look(k, this);
26    }
27
28    public String toString() {
29        return super.toString() + "=>";
30    }
31}
Note: See TracBrowser for help on using the repository browser.