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