»
Parser
nom.Parser
Type Parameters
Functions
(OM type, mapper Unary (outcome OM) nom.Parser.O) => nom.this.Parser nom.Parser.I nom.Parser.R OM[Contains abstract features]¶
(OM
type
, mapper Unary (outcome OM) nom.Parser.O) =>
nom.this.Parser nom.Parser.I nom.Parser.R OM[Contains abstract features]
¶returns a parser that uses this parser
but maps the result to another type.
but maps the result to another type.
(I2 type, map_fn Unary nom.Parser.I I2) => nom.this.Parser I2 nom.Parser.R nom.Parser.O[Contains abstract features]¶
(I2
type
, map_fn Unary nom.Parser.I I2) =>
nom.this.Parser I2 nom.Parser.R nom.Parser.O[Contains abstract features]
¶map input to parser p
wrap an existing parser.
using `map_fn` to map input of type `I2`
to the parsers input type `I1`.
wrap an existing parser.
using `map_fn` to map input of type `I2`
to the parsers input type `I1`.
0.094dev (2025-06-18 15:08:51 GIT hash 89cffc23ae669b0898a5564fefbf793fcb8e5ca7 built by fridi@fzen)
parse takes an input of type I
and returns either an error
or a result of type O and a rest of type R