Fuzion Logo
fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.

Parser

nom.Parser

(I 
type
, R 
type
, O 
type
)
 ref
:
Unary nom.this.parse_result R O, I
 is
[Contains abstract features]
wrapper for the parsing function parse

parse takes an input of type I
and returns either an error
or a result of type O and a rest of type R

Type Parameters

Functions

returns a parser that uses this parser
but maps the result to another type.
map input to parser p

wrap an existing parser.
using `map_fn` to map input of type `I2`
to the parsers input type `I1`.
0.095dev (2025-09-09 14:29:31 GIT hash 98644f8f651c2101a0730cfe31c5807993b7603b built by fridi@fzen)