fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.
Fuzion
•
Library Modules
•
nom
•
nom
•
Parser
»
Modules
base
clang
http
lock_free
nom
terminal
uuid
wolfssl
universe (module nom)
└─
nom
├─
parse_result
├─
Parser
├─
parsers
│
└─
json_value
└─
success
(2 args)
Parser
nom
.
Parser
Parser
(I
type
:
Type
, R
type
:
Type
, O
type
:
Type
)
ref
:
Unary nom.this.parse_result R O, I
is
[Contains abstract features]
¶
[src]
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
I
¶
[src]
R
¶
[src]
O
¶
[src]
Functions
map
(OM
type
:
Type
, mapper
Unary (outcome OM) O
)
=>
nom.this.Parser I R OM
¶
[src]
returns a parser that uses this parser
but maps the result to another type.
map_input
(I2
type
:
Type
, map_fn
Unary I I2
)
=>
nom.this.Parser I2 R O
¶
[src]
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-08-15 12:02:22 GIT hash 301b5b75e77076d091b38f555473f9f0e31e5b5c 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