Create and evaluate parsers.
Once a consistent set of matchers is constructed (that describes a grammar)
they must be evaluated against some input. The code here supports that
evaluation (via trampoline()) and allows the graph of matchers to be
rewritten beforehand.
|
list
|
imap(function,
sequence,
sequence=...,
...)
Return a list of the results of applying the function to the items of
the argument sequence(s). |
|
|
|
|
tagged(method)
Decorator for generators to add extra attributes. |
source code
|
|
|
|
tagged_function(matcher,
function)
Decorator for generators to add extra attributes. |
source code
|
|
|
|
|
|
|
|
|
|
make_multiple(raw)
Convert a raw parser to return a generator of results. |
source code
|
|
|
|
make_single(raw)
Convert a raw parser to return a single result or None. |
source code
|
|