The combinator public API for instaparse
The combinator public API for instaparse
(abnf spec & {:as opts})
Takes an ABNF grammar specification string and returns the combinator version.
If you give it the right-hand side of a rule, it will return the combinator equivalent.
If you give it a series of rules, it will give you back a grammar map.
Useful for combining with other combinators.
Takes an ABNF grammar specification string and returns the combinator version. If you give it the right-hand side of a rule, it will return the combinator equivalent. If you give it a series of rules, it will give you back a grammar map. Useful for combining with other combinators.
(alt & parsers)
Alternation, i.e., parser1 | parser2 | parser3 | ...
Alternation, i.e., parser1 | parser2 | parser3 | ...
(cat & parsers)
Concatenation, i.e., parser1 parser2 ...
Concatenation, i.e., parser1 parser2 ...
(ebnf spec & {:as opts})
Takes an EBNF grammar specification string and returns the combinator version.
If you give it the right-hand side of a rule, it will return the combinator equivalent.
If you give it a series of rules, it will give you back a grammar map.
Useful for combining with other combinators.
Takes an EBNF grammar specification string and returns the combinator version. If you give it the right-hand side of a rule, it will return the combinator equivalent. If you give it a series of rules, it will give you back a grammar map. Useful for combining with other combinators.
(hide parser)
Hide the result of parser, i.e., <parser>
Hide the result of parser, i.e., <parser>
(hide-tag parser)
Hide the tag associated with this rule.
Wrap this combinator around the entire right-hand side.
Hide the tag associated with this rule. Wrap this combinator around the entire right-hand side.
(neg parser)
Negative lookahead, i.e., !parser
Negative lookahead, i.e., !parser
(nt s)
Refers to a non-terminal defined by the grammar map
Refers to a non-terminal defined by the grammar map
(ord)
(ord parser1 & parsers)
Ordered choice, i.e., parser1 / parser2
Ordered choice, i.e., parser1 / parser2
(regexp r)
Create a regexp terminal out of regular expression r
Create a regexp terminal out of regular expression r
(rep m n parser)
Between m and n repetitions
Between m and n repetitions
(string s)
Create a string terminal out of s
Create a string terminal out of s
(string-ci s)
Create a case-insensitive string terminal out of s
Create a case-insensitive string terminal out of s
(unicode-char code-point)
(unicode-char lo hi)
Matches a Unicode code point or a range of code points
Matches a Unicode code point or a range of code points
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close