public class TypesParser extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
TypesParser.Nonterminals |
static class |
TypesParser.ParseException |
| Modifier and Type | Field and Description |
|---|---|
protected int |
tmHead |
protected TypesLexer |
tmLexer |
protected TypesLexer.Span |
tmNext |
protected TypesLexer.Span[] |
tmStack |
protected static String[] |
tmSymbolNames |
| Constructor and Description |
|---|
TypesParser(TypesLexer.ErrorReporter reporter) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyRule(TypesLexer.Span tmLeft,
int ruleIndex,
int ruleLength) |
AstInput |
parse(TypesLexer lexer) |
protected void |
reduce(int rule) |
protected void |
shift() |
protected static int |
tmAction(int state,
int symbol)
-3-n Lookahead (state id)
-2 Error
-1 Shift
0..n Reduce (rule index)
|
protected static int |
tmGoto(int state,
int symbol) |
protected static final String[] tmSymbolNames
protected int tmHead
protected TypesLexer.Span[] tmStack
protected TypesLexer.Span tmNext
protected TypesLexer tmLexer
public TypesParser(TypesLexer.ErrorReporter reporter)
protected static int tmAction(int state,
int symbol)
protected static int tmGoto(int state,
int symbol)
public AstInput parse(TypesLexer lexer) throws IOException, TypesParser.ParseException
protected void shift()
throws IOException
IOExceptionprotected void reduce(int rule)
protected void applyRule(TypesLexer.Span tmLeft, int ruleIndex, int ruleLength)
Copyright © 2014. All rights reserved.