(++ x)
Builds string from (possibly nested) collections of parsed characters and
strings. To be used with p/with
.
Builds string from (possibly nested) collections of parsed characters and strings. To be used with `p/with`.
Parser and predicate for ASCII 7 bit alphabetic or numeric character.
Parser and predicate for ASCII 7 bit alphabetic or numeric character.
Parser and predicate for ASCII 7 bit alphabetic character.
Parser and predicate for ASCII 7 bit alphabetic character.
Parser and predicate for ASCII 7 bit lower-case alphabetic character.
Parser and predicate for ASCII 7 bit lower-case alphabetic character.
Parses a CRLF or LF end of line. Returns a ewline
character.
Parses a CRLF or LF end of line. Returns a ` ewline` character.
(not-of? cs)
(not-of? cs pred-k)
Returns parser and predicate for the character c
which is not in the
supplied string of characters cs
. See also one-of?
about optional
pred-k
argument.
Returns parser and predicate for the character `c` which is _not_ in the supplied string of characters `cs`. See also `one-of?` about optional `pred-k` argument.
Parser and predicate for ASCII 7 bit numeric character.
Parser and predicate for ASCII 7 bit numeric character.
(one-of? cs)
(one-of? cs pred-k)
Returns parser and predicate for the character c
which is in the supplied
string of characters cs
. Optional pred-k
keyword refers to function
(fn [pred-k cs] (fn [c] ...))
which returns custom predicate for chars
against cs
. The new pred-k
should be registered using
register-one-of-pred
, predefined values are :default
for default and :ic
for case insensitive matching.
(def control-char (one-of? "EX"))
(def control-char-ignorecase (one-of? "ex" :ic))
Returns parser and predicate for the character `c` which is in the supplied string of characters `cs`. Optional `pred-k` keyword refers to function `(fn [pred-k cs] (fn [c] ...))` which returns custom predicate for chars against `cs`. The new `pred-k` should be registered using `register-one-of-pred`, predefined values are `:default` for default and `:ic` for case insensitive matching. (def control-char (one-of? "EX")) (def control-char-ignorecase (one-of? "ex" :ic))
(re-match? re)
Returns parser and predicate for the character c
matching regex pattern
re
.
Returns parser and predicate for the character `c` matching regex pattern `re`.
(register-one-of-pred k f)
Associates keyword k
with predicate function of the one-of?
and not-of?
parser.
Associates keyword `k` with predicate function of the `one-of?` and `not-of?` parser.
Parser and predicate for ASCII 7 bit upper-case alphabetic character.
Parser and predicate for ASCII 7 bit upper-case alphabetic character.
Parser and predicate for ASCII 7 bit whitespace character.
Parser and predicate for ASCII 7 bit whitespace character.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close