Package | Description |
---|---|
jfun.parsec |
Provides classes and interfaces for parser combinator logic and basic parsers.
|
Modifier and Type | Class and Description |
---|---|
class |
Token2String
Default ShowToken implementation that uses toString() to convert.
|
Modifier and Type | Method and Description |
---|---|
static ShowToken |
Token2String.instance() |
Modifier and Type | Method and Description |
---|---|
static <R> Parser<R> |
Parsers.parseTokens(java.lang.String eof_title,
ShowToken show,
Parser<Tok[]> lexer,
Parser<R> p,
java.lang.String module)
The created parser object will take as input the array of Tok
returned from the lexer object, feed it into the Parser object p and run
it, return the result from parser p.
|
static <R> Parser<R> |
Parsers.parseTokens(java.lang.String name,
java.lang.String eof_title,
ShowToken show,
Parser<Tok[]> lexer,
Parser<R> p,
java.lang.String module)
The created parser object will take as input the array of Tok
returned from the lexer object, feed it into the Parser object p and run
it, return the result from parser p.
|
static <R> R |
Parsers.runParser(Tok[] toks,
int end_index,
Parser<R> p,
ShowToken show,
java.lang.String eof_title,
PositionMap pmap,
java.lang.String module)
Runs a token level Parser object with an array of tokens.
|