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 (or a single character). The 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 (char/is "EX"))
(def control-char-ignorecase (char/is "ex" :ic))
Returns parser and predicate for the character `c` which is in the supplied
string of characters `s` (or a single character). The 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 (char/is "EX"))
    (def control-char-ignorecase (char/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 (or a single character). 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` (or a single character). 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 \newline character.
Parses a CRLF or LF end of line. Returns a `\newline` 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.parser/value.
Builds string from (possibly nested) collections of parsed characters and strings. To be used with [[strojure.parsesso.parser/value]].
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 builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs | 
| ← | Move to previous article | 
| → | Move to next article | 
| Ctrl+/ | Jump to the search field |