Fuzion Logo
fuzion-lang.dev — The Fuzion Language Portal

nom

nom

:
Any
 is
[Contains abstract features]
nom is a parser combinator framework
for more information go to:
https://github.com/Geal/nom/

Constructors

(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
nom.parsers -- namespace for parser combinators and parsers built with nom
(R 
type
, O 
type
, rest R, out O)
:
Any
 is
[Contains abstract features]
the result of parsing, if successful

rest = the rest of the input that was not consumed by the parser
out = the result of parsing, e.g. a concrete syntax tree

Functions

(I 
type
, R 
type
, O 
type
, f Unary (nom.this.parse_result R O) I)
 => 
nom.this.Parser I R O
[Contains abstract features]
short hand for creating a Parser via
given function `f`.

Choice Types

(I 
type
, O 
type
)
:
outcome nom.this.success I O
[Contains abstract features]
the result of Parser.call()
0.094dev (2025-06-18 15:08:51 GIT hash 89cffc23ae669b0898a5564fefbf793fcb8e5ca7 built by fridi@fzen)