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.
(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
(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.
(regexp-replace s)
Replaces whitespace characters with escape sequences for better printing
Replaces whitespace characters with escape sequences for better printing
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close