Liking cljdoc? Tell your friends :D

net.cgrand.seqexp

Regular expressions for sequences.

Regular expressions for sequences.
raw docstring

*clj

(* e & es)

Matches its body zero or more times. Exists in greedy () and reluctant (?) variants.

Matches its body zero or more times.
Exists in greedy (*) and reluctant (*?) variants.
sourceraw docstring

*'clj

(*' sep e & es)

Matches its body zero or more times, separated by sep. Exists in greedy (') and reluctant ('?) variants.

Matches its body zero or more times, separated by sep.
Exists in greedy (*') and reluctant (*'?) variants.
sourceraw docstring

*'?clj

(*'? sep e & es)

Matches its body zero or more times, separated by sep. Exists in greedy (') and reluctant ('?) variants.

Matches its body zero or more times, separated by sep.
Exists in greedy (*') and reluctant (*'?) variants.
sourceraw docstring

*?clj

(*? e & es)

Matches its body zero or more times. Exists in greedy () and reluctant (?) variants.

Matches its body zero or more times.
Exists in greedy (*) and reluctant (*?) variants.
sourceraw docstring

+clj

(+ e & es)

Matches its body one or more times. Exists in greedy (+) and reluctant (+?) variants.

Matches its body one or more times.
Exists in greedy (+) and reluctant (+?) variants.
sourceraw docstring

+'clj

(+' sep e & es)

Matches its body one or more times separated by sep. Exists in greedy (+') and reluctant (+'?) variants.

Matches its body one or more times separated by sep.
Exists in greedy (+') and reluctant (+'?) variants.
sourceraw docstring

+'?clj

(+'? sep e & es)

Matches its body one or more times separated by sep. Exists in greedy (+') and reluctant (+'?) variants.

Matches its body one or more times separated by sep.
Exists in greedy (+') and reluctant (+'?) variants.
sourceraw docstring

+?clj

(+? e & es)

Matches its body one or more times. Exists in greedy (+) and reluctant (+?) variants.

Matches its body one or more times.
Exists in greedy (+) and reluctant (+?) variants.
sourceraw docstring

?clj

(? e & es)

Matches its body zero or once. Exists in greedy (?) and reluctant (??) variants.

Matches its body zero or once.
Exists in greedy (?) and reluctant (??) variants.
sourceraw docstring

?!clj

(?! & es)

Negative lookahead

Negative lookahead
sourceraw docstring

?=clj

(?= & es)

Positive lookahead

Positive lookahead
sourceraw docstring

??clj

(?? e & es)

Matches its body zero or once. Exists in greedy (?) and reluctant (??) variants.

Matches its body zero or once.
Exists in greedy (?) and reluctant (??) variants.
sourceraw docstring

_clj

Matches anything

Matches anything
sourceraw docstring

all-occurrencesclj

source

asclj

(as name e & es)

Like cat but saves the match as a group under the specified name. (:match and :rest are reserved names).

Like cat but saves the match as a group under the specified name.
(:match and :rest are reserved names).
sourceraw docstring

boot-accepting-vmclj

(boot-accepting-vm insts)

Starts an accepting vm. An accepting vm ignore submatches.

Starts an accepting vm. An accepting vm ignore submatches.
sourceraw docstring

boot-grouping-vmclj

(boot-grouping-vm insts regbank)
(boot-grouping-vm insts regbank init-pos inc-pos)
source

catclj

(cat e & es)

Concatenates several seqexps into one.

Concatenates several seqexps into one.
sourceraw docstring

comp-bankclj

(comp-bank banks)
source

execclj

(exec re coll & {grps :groups})

Executes the regular expression, returns either nil on failure or a map of group names to matched sub-sequences. They are two special groups: :match and :rest, corresponding to the matched sub sequence and the rest of the input sequence.

Executes the regular expression, returns either nil on failure or a map of
group names to matched sub-sequences. They are two special groups: :match
and :rest, corresponding to the matched sub sequence and the rest of the
input sequence.
sourceraw docstring

exec-treeclj

(exec-tree re coll)
(exec-tree mk-node re coll)

Executes the regular expression, returns either nil on failure or a map with two keys: :match and :rest. Under :match is found a tree built out of named groups. Group names MUST be vectors.

Executes the regular expression, returns either nil on failure or a map with two keys:
:match and :rest. Under :match is found a tree built out of named groups.
Group names MUST be vectors.
sourceraw docstring

hierarchical-bankclj

(hierarchical-bank f init)
source

instructionsclj

(instructions re)
source

last-occurrenceclj

source

Patternclj

source

reduce-occurrencesclj

(reduce-occurrences f init)
source

registerclj

(register f init)
source

RegisterBankcljprotocol

fetchclj

(fetch bank)

save0clj

(save0 bank id v)

save1clj

(save1 bank id v)
source

repeatclj

(repeat n e)
(repeat min max e)

Matches its body min to max times (inclusive). Exists in greedy (repeat) and reluctant (repeat?) variants.

Matches its body min to max times (inclusive).
Exists in greedy (repeat) and reluctant (repeat?) variants.
sourceraw docstring

repeat'clj

(repeat' n sep e)
(repeat' min max sep e)

Matches its body min to max times (inclusive) separated by sep. Exists in greedy (repeat') and reluctant (repeat'?) variants.

Matches its body min to max times (inclusive) separated by sep.
Exists in greedy (repeat') and reluctant (repeat'?) variants.
sourceraw docstring

repeat'?clj

(repeat'? n sep e)
(repeat'? min max sep e)

Matches its body min to max times (inclusive) separated by sep. Exists in greedy (repeat') and reluctant (repeat'?) variants.

Matches its body min to max times (inclusive) separated by sep.
Exists in greedy (repeat') and reluctant (repeat'?) variants.
sourceraw docstring

repeat?clj

(repeat? n e)
(repeat? min max e)

Matches its body min to max times (inclusive). Exists in greedy (repeat) and reluctant (repeat?) variants.

Matches its body min to max times (inclusive).
Exists in greedy (repeat) and reluctant (repeat?) variants.
sourceraw docstring

tree-bankclj

(tree-bank mk-node)
source

unmatched-restclj

source

|clj

(| e)
(| e & es)

Matches either of its arguments.

Matches either of its arguments.
sourceraw docstring

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

× close