public interface GearleyParser
Modifier and Type | Method and Description |
---|---|
int |
getColumnNumber()
Returns the column number of the last character on the last line read by the parser.
|
ParserGrammar |
getGrammar()
The grammar used by this parser.
|
int |
getLineNumber()
Returns the line number of the last line read by the parser.
|
int |
getOffset()
Returns the last offset read by the parser.
|
ParserType |
getParserType()
The parser type.
|
NonterminalSymbol |
getSeed()
The seed used by this parser.
|
boolean |
hasMoreInput()
Returns true of the parse ended without consuming all input.
|
GearleyResult |
parse(java.util.Iterator<Token> input)
Parse a sequence of tokens provided by an iterator.
|
GearleyResult |
parse(java.lang.String input)
Parse a string.
|
GearleyResult |
parse(Token[] input)
Parse an array of tokens.
|
ParserType getParserType()
ParserGrammar getGrammar()
NonterminalSymbol getSeed()
GearleyResult parse(Token[] input)
Note that the GLL parser only parses character tokens.
input
- The array of tokens.GearleyResult parse(java.util.Iterator<Token> input)
Note that the GLL parser only parses character tokens.
input
- The token iterator.GearleyResult parse(java.lang.String input)
input
- The input string.boolean hasMoreInput()
int getOffset()
int getLineNumber()
int getColumnNumber()