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

nom

nom

nom is a parser combinator framework
for more information go to:
https://github.com/Geal/nom/

Constructors

(I 
type
:
Type, R 
type
:
Type, O 
type
:
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
:
Type, O 
type
:
Type, rest R, out O)
:
Any
 is
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

short hand for creating a Parser via
given function `f`.

Choice Types

(I 
type
:
Type, O 
type
:
Type)
:
outcome nom.this.success I O
[Contains abstract features]
the result of Parser.call()
0.095dev (2025-08-15 12:02:22 GIT hash 301b5b75e77076d091b38f555473f9f0e31e5b5c built by fridi@fzen)