Liking cljdoc? Tell your friends :D

instaparse.combinators

The combinator public API for instaparse

The combinator public API for instaparse
raw docstring

abnfclj/s≠

clj
(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.
cljs
raw docstring

altclj/s≠

clj
(alt & parsers)

Alternation, i.e., parser1 | parser2 | parser3 | ...

Alternation, i.e., parser1 | parser2 | parser3 | ...
cljs
raw docstring

catclj/s≠

clj
(cat & parsers)

Concatenation, i.e., parser1 parser2 ...

Concatenation, i.e., parser1 parser2 ...
cljs
raw docstring

ebnfclj/s≠

clj
(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.
cljs
raw docstring

Epsilonclj/s


hideclj/s≠

clj
(hide parser)

Hide the result of parser, i.e., <parser>

Hide the result of parser, i.e., <parser>
cljs
raw docstring

hide-tagclj/s≠

clj
(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.
cljs
raw docstring

lookclj/s≠

clj
(look parser)

Lookahead, i.e., &parser

Lookahead, i.e., &parser
cljs
raw docstring

negclj/s≠

clj
(neg parser)

Negative lookahead, i.e., !parser

Negative lookahead, i.e., !parser
cljs
raw docstring

ntclj/s≠

clj
(nt s)

Refers to a non-terminal defined by the grammar map

Refers to a non-terminal defined by the grammar map
cljs
raw docstring

optclj/s≠

clj
(opt parser)

Optional, i.e., parser?

Optional, i.e., parser?
cljs
raw docstring

ordclj/s≠

clj
(ord)
(ord parser1 & parsers)

Ordered choice, i.e., parser1 / parser2

Ordered choice, i.e., parser1 / parser2
cljs
raw docstring

plusclj/s≠

clj
(plus parser)

One or more, i.e., parser+

One or more, i.e., parser+
cljs
raw docstring

regexpclj/s≠

clj
(regexp r)

Create a regexp terminal out of regular expression r

Create a regexp terminal out of regular expression r
cljs
raw docstring

repclj/s≠

clj
(rep m n parser)

Between m and n repetitions

Between m and n repetitions
cljs
raw docstring

starclj/s≠

clj
(star parser)

Zero or more, i.e., parser*

Zero or more, i.e., parser*
cljs
raw docstring

stringclj/s≠

clj
(string s)

Create a string terminal out of s

Create a string terminal out of s
cljs
raw docstring

string-ciclj/s≠

clj
(string-ci s)

Create a case-insensitive string terminal out of s

Create a case-insensitive string terminal out of s
cljs
raw docstring

unicode-charclj/s≠

clj
(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
cljs
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close