Liking cljdoc? Tell your friends :D

instaparse.cfg

This is the context free grammar that recognizes context free grammars.

This is the context free grammar that recognizes context free grammars.
raw docstring

*case-insensitive-literals*clj/s

Sets whether all string literal terminals in a built grammar will be treated as case insensitive.

true: case-insensitive false: case-sensitive :default: case-sensitive for EBNF, case-insensitive for ABNF

Sets whether all string literal terminals in a built grammar
will be treated as case insensitive.

`true`: case-insensitive
`false`: case-sensitive
`:default`: case-sensitive for EBNF, case-insensitive for ABNF
raw docstring

build-parserclj/s

(build-parser spec output-format)

build-parser-from-combinatorsclj/s

(build-parser-from-combinators grammar-map output-format start-production)

build-ruleclj/s

(build-rule tree)

Convert one parsed rule from the grammar into combinators

Convert one parsed rule from the grammar into combinators
raw docstring

cfgclj/s


check-grammarclj/s

(check-grammar grammar-map)

Throw error if grammar uses any invalid non-terminals in its productions

Throw error if grammar uses any invalid non-terminals in its productions
raw docstring

contentclj/s


contentsclj/s


double-quoted-regexpclj/s


double-quoted-stringclj/s


ebnfclj/s

(ebnf spec & {:as opts})

Takes an EBNF 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.

Takes an EBNF 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.
raw docstring

escapeclj/s

(escape s)

Converts escaped single-quotes to unescaped, and unescaped double-quotes to escaped

Converts escaped single-quotes to unescaped, and unescaped double-quotes to escaped
raw docstring

inside-commentclj/s


opt-whitespaceclj/s


process-regexpclj/s

(process-regexp s)

Converts single quoted regexp to double-quoted

Converts single quoted regexp to double-quoted
raw docstring

process-stringclj/s

(process-string s)

Converts single quoted string to double-quoted

Converts single quoted string to double-quoted
raw docstring

regex-docclj/s

(regex-doc pattern-str comment)

Adds a comment to a Clojure regex, or no-op in ClojureScript

Adds a comment to a Clojure regex, or no-op in ClojureScript
raw docstring

safe-read-stringclj/s≠

(safe-read-string s)
clj

Expects a double-quote at the end of the string

Expects a double-quote at the end of the string
raw docstring

seq-ntclj/s

(seq-nt parser)

Returns a sequence of all non-terminals in a parser built from combinators.

Returns a sequence of all non-terminals in a parser built from combinators.
raw docstring

single-quoted-regexpclj/s


single-quoted-stringclj/s


string+clj/s

(string+ s ci-by-default?)

Returns a string combinator that may be case-insensntive, based on (in priority order):

  1. the value of *case-insensitive-literals*, if it has been overridden to a boolean
  2. the supplied ci-by-default? parameter
Returns a string combinator that may be case-insensntive, based
on (in priority order):

1) the value of `*case-insensitive-literals*`, if it has been
overridden to a boolean
2) the supplied `ci-by-default?` parameter
raw docstring

tagclj/s


wrap-readerclj

(wrap-reader reader)

wsclj/s

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

× close