public class XmlParser extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
XmlParser.Nonterminals |
static class |
XmlParser.ParseException |
| Modifier and Type | Field and Description |
|---|---|
protected int |
tmHead |
protected XmlLexer |
tmLexer |
protected XmlLexer.Span |
tmNext |
protected XmlLexer.Span[] |
tmStack |
protected static String[] |
tmSymbolNames |
| Constructor and Description |
|---|
XmlParser(XmlLexer.ErrorReporter reporter) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyRule(XmlLexer.Span tmLeft,
int ruleIndex,
int ruleLength) |
XmlNode |
parse(XmlLexer 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 XmlLexer.Span[] tmStack
protected XmlLexer.Span tmNext
protected XmlLexer tmLexer
public XmlParser(XmlLexer.ErrorReporter reporter)
protected static int tmAction(int state,
int symbol)
protected static int tmGoto(int state,
int symbol)
public XmlNode parse(XmlLexer lexer) throws IOException, XmlParser.ParseException
IOExceptionXmlParser.ParseExceptionprotected void shift()
throws IOException
IOExceptionprotected void reduce(int rule)
protected void applyRule(XmlLexer.Span tmLeft, int ruleIndex, int ruleLength)
Copyright © 2014. All rights reserved.