Maps semantic data from parser to new user-defined ones. It maps
parser
It is used to define new interfaces for ParseState results from parsers. This is the main way to customise semantic data and even alter the
A new TokenParser or SymbolParser of the same type, whose execution will return the altered results.
The parser whose result will be altered.
A callback that accepts a ParseState from parser to decide how to map data.
A callback that accepts a ParseState from parser to decide how to map error.
Maps semantic data from
parser
to new user-defined ones. It mapsparser
returns a ParseResultparser
returns a ParseErrorIt is used to define new interfaces for ParseState results from parsers. This is the main way to customise semantic data and even alter the
Returns
A new TokenParser or SymbolParser of the same type, whose execution will return the altered results.