Liking cljdoc? Tell your friends :D

instaparse.print

Facilities for taking parsers and grammars, and converting them to strings. Used for pretty-printing.

Facilities for taking parsers and grammars, and converting them to strings.
Used for pretty-printing.
raw docstring

char-range->strclj/s

(char-range->str {:keys [lo hi]})

combinators->strclj/s

(combinators->str p)
(combinators->str {:keys [parser parser1 parser2 parsers tag] :as p} hidden?)

Stringifies a parser built from combinators

Stringifies a parser built from combinators
raw docstring

number->hex-paddedcljs

(number->hex-padded n)

paren-for-compoundclj/s


paren-for-tagsclj/s

(paren-for-tags tag-set hidden? parser)

Parser->strclj/s

(Parser->str {grammar :grammar start :start-production})

Takes a Parser object, i.e., something with a grammar map and a start production keyword, and stringifies it.

Takes a Parser object, i.e., something with a grammar map and a start 
production keyword, and stringifies it.
raw docstring

regexp->strclj/s

(regexp->str r)

regexp-replaceclj/s

(regexp-replace s)

Replaces whitespace characters with escape sequences for better printing

Replaces whitespace characters with escape sequences for better printing
raw docstring

rule->strclj/s

(rule->str non-terminal parser)

Takes a non-terminal symbol and a parser built from combinators, and returns a string for the rule.

Takes a non-terminal symbol and a parser built from combinators,
and returns a string for the rule.
raw docstring

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

× close