Basic function for parsing sequences of characters.
Basic function for parsing sequences of characters.
(is s)
(is s pred-k)
Returns parser and predicate for the character c
which is in the supplied
string of characters s
. Optional pred-k
keyword refers to function
(fn [pred-k s] (fn [c] ...))
which returns custom predicate for chars
against s
. The new pred-k
should be registered using
register-string-pred
, predefined values are :default
for default and
:ic
for case insensitive matching.
(def control-char (is "EX"))
(def control-char-ignorecase (is "ex" :ic))
Returns parser and predicate for the character `c` which is in the supplied string of characters `s`. Optional `pred-k` keyword refers to function `(fn [pred-k s] (fn [c] ...))` which returns custom predicate for chars against `s`. The new `pred-k` should be registered using [[register-string-pred]], predefined values are `:default` for default and `:ic` for case insensitive matching. (def control-char (is "EX")) (def control-char-ignorecase (is "ex" :ic))
(is-not s)
(is-not s pred-k)
Returns parser and predicate for the character c
which is not in the
supplied string of characters s
. See also is
about optional
pred-k
argument.
Returns parser and predicate for the character `c` which is _not_ in the supplied string of characters `s`. See also [[is]] about optional `pred-k` argument.
Parser and predicate for ASCII 7 bit letter or number character.
Parser and predicate for ASCII 7 bit letter or number character.
Parser and predicate for ASCII 7 bit letter character.
Parser and predicate for ASCII 7 bit letter character.
Parser and predicate for ASCII 7 bit lower-case letter character.
Parser and predicate for ASCII 7 bit lower-case letter 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.
Parser and predicate for ASCII 7 bit number character.
Parser and predicate for ASCII 7 bit number character.
(regex 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`.
(str* x)
Builds string from (possibly nested) collections of parsed characters and
strings. To be used with strojure.parsesso.core/using
.
Builds string from (possibly nested) collections of parsed characters and strings. To be used with [[strojure.parsesso.core/using]].
Parser and predicate for ASCII 7 bit upper-case letter character.
Parser and predicate for ASCII 7 bit upper-case letter 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