|
Absimpa v196 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
N - is the type of the objects created by the parserC - is the type of token codes provided by the lexerpublic interface Parser<N,C extends java.lang.Enum<C>>
parses input in the form of token codes as provided by a lexical analyzer
and constructs result objects. To obtain a parser, use the
GrammarBuilder and compile the resulting Grammar.
| Method Summary | |
|---|---|
N |
parse(Lexer<N,C> lex)
parses a sequence of objects of type <C> from the given Lexer and transforms it into an object of type <N>. |
| Method Detail |
|---|
N parse(Lexer<N,C> lex)
throws ParseException
parses a sequence of objects of type <C> from the given Lexer and transforms it into an object of type <N>.
NodeFactory therefore may in
particular be null.
ParseException - if the sequence of <C> objects provided
by the Lexer does not match the grammar for which this
parser was created.
|
Absimpa v196 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||