parsers
nom.parsers
nom.parsers -- namespace for parser combinators and parsers built with nom
Constructors
xml_node(name String,attributes container.Map String String,data Sequence (choice nom.parsers.xml_node String)):Any is¶[src]
an deserialized xml node
Functions
alt(I:Any,R:Any,O:Any,parser Sequence (nom.this.Parser I R O)) => nom.this.Parser I R O¶[src]
return result of first succeeding parser
delimited(I:Any,O1:Any,O2:Any,O3:Any,p1 nom.this.Parser I I O1,p2 nom.this.Parser I I O2,p3 nom.this.Parser I I O3) => nom.this.Parser I I O2¶[src]
discard p1 and p3, return result of p2
digit1 => nom.this.Parser (Sequence codepoint) (Sequence codepoint) (Sequence codepoint)¶[src]
match one or more digits
json => nom.this.Parser String (Sequence codepoint) nom.parsers.this.json_value¶[src]
a json parser
NYI: UNDER DEVELOPMENT: incomplete
NYI: PERFORMANCE: not yet optimized
Specification: https://ecma-international.org/wp-content/uploads/ECMA-404_2nd_edition_december_2017.pdf
NYI: UNDER DEVELOPMENT: incomplete
NYI: PERFORMANCE: not yet optimized
Specification: https://ecma-international.org/wp-content/uploads/ECMA-404_2nd_edition_december_2017.pdf
many0(I:Any,O:Any,p nom.this.Parser I I O) => nom.this.Parser I I (Sequence O)¶[src]
apply parser multiple times, return results as sequence
many1(I:Any,O:Any,p nom.this.Parser I I O) => nom.this.Parser I I (Sequence O)¶[src]
apply parser at least once, return results as sequence
many_m_n(I:Any,O:Any,m i64,n i64,p nom.this.Parser I I O) => nom.this.Parser I I (Sequence O)¶[src]
apply parser between m and n times, return results as sequence
preceded(I:Any,O1:Any,O2:Any,p1 nom.this.Parser I I O1,p2 nom.this.Parser I I O2) => nom.this.Parser I I O2¶[src]
discard the output of the first parser, return the result of the second parser
separated_list0(I:Any,O:Any,D:Any,p_sep nom.this.Parser I I D,p_value nom.this.Parser I I O) => nom.this.Parser I I (Sequence O)¶[src]
parse a separated list of values, zero or more values
separated_list1(I:Any,O:Any,D:Any,p_sep nom.this.Parser I I D,p_value Function (nom.this.Parser I I O)) => nom.this.Parser I I (Sequence O)¶[src]
parse a separated list of values, one or more values
separated_pair(I:Any,R1:Any,R2:Any,R3:Any,O1:Any,O2:Any,O3:Any,p1 nom.this.Parser I R1 O1,p_sep nom.this.Parser R1 R2 O2,p2 Function (nom.this.Parser R2 R3 O3)) => nom.this.Parser I R3 (tuple O1 O3)¶[src]
return result of p1 and p2 as tuple, drop result of p_sep
tag(str String) => nom.this.Parser (Sequence codepoint) (Sequence codepoint) (Sequence codepoint)¶[src]
match str
take_while0(T:Any,cond Unary bool T) => nom.this.Parser (Sequence T) (Sequence T) (Sequence T)¶[src]
take while cond is satisfied
take_while1(T:Any,cond Unary bool T) => nom.this.Parser (Sequence T) (Sequence T) (Sequence T)¶[src]
take while cond is satisfied, at least once
take_while_m_n(T:Any,m i64,n i64,cond Unary bool T) => nom.this.Parser (Sequence T) (Sequence T) (Sequence T)¶[src]
matches input as often as possible but at least m times and at most n times.
to_string_input(R:Any,O:Any,p nom.this.Parser (Sequence codepoint) R O) => nom.this.Parser String R O¶[src]
convert a parser taking a sequence of codepoints to a parser that takes a string
to_string_output(I:Any,R:Any,p nom.this.Parser I R (Sequence codepoint)) => nom.this.Parser I R String¶[src]
convert a parser returning a sequence of codepoints to a parser that returns a string
to_string_parser(R:Any,p nom.this.Parser (Sequence codepoint) R (Sequence codepoint)) => nom.this.Parser String R String¶[src]
convert a parser taking and returning to codepoints to a parser taking and returning a string
tuple2(I:Any,O1:Any,O2:Any,p1 nom.this.Parser I I O1,p2 nom.this.Parser I I O2) => nom.this.Parser I I (tuple O1 O2)¶[src]
apply p1 then p2 and return their results as a tuple.
tuple3(I:Any,O1:Any,O2:Any,O3:Any,p1 nom.this.Parser I I O1,p2 nom.this.Parser I I O2,p3 nom.this.Parser I I O3) => nom.this.Parser I I (tuple O1 O2 O3)¶[src]
apply p1 then p2 then p3 and return their results as a tuple.
tuple4(I:Any,O1:Any,O2:Any,O3:Any,O4:Any,p1 nom.this.Parser I I O1,p2 nom.this.Parser I I O2,p3 nom.this.Parser I I O3,p4 nom.this.Parser I I O4) => nom.this.Parser I I (tuple O1 O2 O3 O4)¶[src]
apply p1 then p2 then p3, then p4 and return their results as a tuple.
whitespace0 => nom.this.Parser (Sequence codepoint) (Sequence codepoint) (Sequence codepoint)¶[src]
match zero or more whitespace
xml => nom.this.Parser String (Sequence codepoint) (Sequence nom.parsers.xml_node)¶[src]
xml parser
NYI: UNDER DEVELOPMENT: incomplete! can only parse small subset of xml
usage : NYI: UNDER DEVELOPMENT:
Specification: https://www.w3.org/TR/REC-xml/
NYI: UNDER DEVELOPMENT: incomplete! can only parse small subset of xml
usage : NYI: UNDER DEVELOPMENT:
Specification: https://www.w3.org/TR/REC-xml/
Choice Types
json_value:choice String, f64, bool, nil, Sequence nom.parsers.this.json_value, container.Map String nom.parsers.this.json_value¶[src]
json supports the following types: strings, numbers, booleans, null, arrays and objects
0.099dev (GIT hash e2d5298d8107bb5fe79600fdb06a49bc75756344)