CrossClj

1.4.9 docs

SourceDocs



RECENT
    VARS
    char-range->str
    combinators->str
    paren-for-compound
    paren-for-tags
    Parser->str
    regexp->str
    regexp-replace
    rule->str

    « Index of all namespaces of this project

    Facilities for taking parsers and grammars, and converting them to strings.
    Used for pretty-printing.
    (char-range->str {:keys [lo hi]})
    (combinators->str p)(combinators->str {:keys [parser parser1 parser2 parsers tag], :as p} hidden?)
    Stringifies a parser built from combinators
    
    (paren-for-tags tag-set hidden? parser)
    (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.
    (regexp-replace s)
    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.