public class TemplatesParser extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
TemplatesParser.Nonterminals |
static class |
TemplatesParser.ParseException |
| Modifier and Type | Field and Description |
|---|---|
protected int |
tmHead |
protected TemplatesLexer |
tmLexer |
protected TemplatesLexer.Span |
tmNext |
protected TemplatesLexer.Span[] |
tmStack |
protected static String[] |
tmSymbolNames |
| Constructor and Description |
|---|
TemplatesParser(TemplatesLexer.ErrorReporter reporter) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyRule(TemplatesLexer.Span tmLeft,
int ruleIndex,
int ruleLength) |
protected void |
cleanup(TemplatesLexer.Span value)
cleans node removed from the stack
|
protected void |
dispose(TemplatesLexer.Span value)
disposes symbol dropped by error recovery mechanism
|
TemplateNode |
parseBody(TemplatesLexer lexer) |
List<IBundleEntity> |
parseInput(TemplatesLexer lexer) |
protected void |
reduce(int rule) |
protected boolean |
restore() |
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 TemplatesLexer.Span[] tmStack
protected TemplatesLexer.Span tmNext
protected TemplatesLexer tmLexer
public TemplatesParser(TemplatesLexer.ErrorReporter reporter)
protected static int tmAction(int state,
int symbol)
protected static int tmGoto(int state,
int symbol)
protected boolean restore()
protected void shift()
throws IOException
IOExceptionprotected void reduce(int rule)
protected void applyRule(TemplatesLexer.Span tmLeft, int ruleIndex, int ruleLength)
protected void dispose(TemplatesLexer.Span value)
protected void cleanup(TemplatesLexer.Span value)
public List<IBundleEntity> parseInput(TemplatesLexer lexer) throws IOException, TemplatesParser.ParseException
public TemplateNode parseBody(TemplatesLexer lexer) throws IOException, TemplatesParser.ParseException
Copyright © 2014. All rights reserved.