Liking cljdoc? Tell your friends :D

cider.nrepl.inlined.deps.instaparse.v1v4v12.instaparse.combinators

The combinator public API for instaparse

The combinator public API for instaparse
raw docstring

abnfclj

(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.
sourceraw docstring

altclj

(alt & parsers)

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

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

catclj

(cat & parsers)

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

Concatenation, i.e., parser1 parser2 ...
sourceraw docstring

ebnfclj

(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.
sourceraw docstring

Epsilonclj

source

hideclj

(hide parser)

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

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

hide-tagclj

(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.
sourceraw docstring

lookclj

(look parser)

Lookahead, i.e., &parser

Lookahead, i.e., &parser
sourceraw docstring

negclj

(neg parser)

Negative lookahead, i.e., !parser

Negative lookahead, i.e., !parser
sourceraw docstring

ntclj

(nt s)

Refers to a non-terminal defined by the grammar map

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

optclj

(opt parser)

Optional, i.e., parser?

Optional, i.e., parser?
sourceraw docstring

ordclj

(ord)
(ord parser1 & parsers)

Ordered choice, i.e., parser1 / parser2

Ordered choice, i.e., parser1 / parser2
sourceraw docstring

plusclj

(plus parser)

One or more, i.e., parser+

One or more, i.e., parser+
sourceraw docstring

regexpclj

(regexp r)

Create a regexp terminal out of regular expression r

Create a regexp terminal out of regular expression r
sourceraw docstring

repclj

(rep m n parser)

Between m and n repetitions

Between m and n repetitions
sourceraw docstring

starclj

(star parser)

Zero or more, i.e., parser*

Zero or more, i.e., parser*
sourceraw docstring

stringclj

(string s)

Create a string terminal out of s

Create a string terminal out of s
sourceraw docstring

string-ciclj

(string-ci s)

Create a case-insensitive string terminal out of s

Create a case-insensitive string terminal out of s
sourceraw docstring

unicode-charclj

(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
sourceraw docstring

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

× close