CrossClj

1.4.9 docs

SourceDocs



RECENT
    VARS
    *case-insensitive*
    abnf
    abnf-core
    abnf-grammar
    abnf-grammar-clj-only
    abnf-grammar-cljs-only
    abnf-grammar-common
    abnf-parser
    abnf-transformer
    alt-preserving-hide-tag
    build-parser
    char-range
    get-char-combinator
    hide-tag?
    merge-core
    parse-int
    precompile-cljs-grammar
    project
    rules->grammar-map

    « Index of all namespaces of this project

    This is the context free grammar that recognizes ABNF notation.
    
    Dynamic
    This is normally set to false, in which case the non-terminals
    are treated as case-sensitive, which is NOT the norm
    for ABNF grammars. If you really want case-insensitivity,
    bind this to true, in which case all non-terminals
    will be converted to upper-case internally (which
    you'll have to keep in mind when transforming).
    (abnf spec)
    Takes an ABNF grammar specification string and returns the combinator version.
    If you give it the right-hand side of a rule, it will return the combinator equivalent.
    If you give it a series of rules, it will give you back a grammar map.   
    Useful for combining with other combinators.
    (alt-preserving-hide-tag p1 p2)
    (build-parser spec output-format)
    (char-range codepoint1 codepoint2)
    Takes two codepoints and returns a combinator representing a range of characters.
    
    (get-char-combinator num1)(get-char-combinator num1 num2 & nums)
    (hide-tag? p)
    Tests whether parser was constructed with hide-tag
    
    (merge-core grammar-map)
    Merges abnf-core map in with parsed grammar map
    
    (parse-int string)(parse-int string radix)
    macro
    (precompile-cljs-grammar)
    (project m ks)
    Restricts map to certain keys
    
    (rules->grammar-map rules)