Liking cljdoc? Tell your friends :D

instacheck.core


apply-grammar-updatesclj

source

clj-prefixclj

(clj-prefix nsname)
source

ebnf->genclj

(ebnf->gen ebnf)
(ebnf->gen ctx ebnf)

Takes an EBNF grammar, parser, file, or text string and returns a test.check generator. If the start is specified then this the name of the rule to use as the starting rule of the grmmar. If start is not specified then the first rule in the grammar file is used as the starting rule.

Takes an EBNF grammar, parser, file, or text string and returns
a test.check generator. If the start is specified then this the name
of the rule to use as the starting rule of the grmmar. If start is
not specified then the first rule in the grammar file is used as the
starting rule.
sourceraw docstring

filter-altsclj

source

grammar->generator-defs-sourceclj

source

grammar->generator-func-sourceclj

source

grammar->generator-objclj

(grammar->generator-obj {:keys [start] :as ctx} grammar)

Return a a new generator object based on the context and instacheck grammar object.

Return a a new generator object based on the context and instacheck
grammar object.
sourceraw docstring

grammar->nsclj

(grammar->ns ctx grammar)
source

load-grammarclj

source

parseclj

(parse parser text & [location])

Use parser to parse text. On success returns the parsed AST. On error, throws an ex-info object with a friendly error location string and a info map containing the :failure (instaparse Failure object), :text (the original text), and :location (optional location parameter).

Use parser to parse text. On success returns the parsed AST. On
error, throws an ex-info object with a friendly error location
string and a info map containing the :failure (instaparse Failure
object), :text (the original text), and :location (optional location
parameter).
sourceraw docstring

parse-grammar-commentsclj

source

run-checkclj

(run-check opts gen-to-check check-fn report-fn)

Run quick-check against a generator (gen-to-check) using a check function (check-fn) and reporter functon (report-fn). Execution options (opts) supported are :iterations (default: 10), :max-size (default: 200), and :seed.

Run quick-check against a generator (gen-to-check) using a check
function (check-fn) and reporter functon (report-fn). Execution
options (opts) supported are :iterations (default: 10), :max-size
(default: 200), and :seed.
sourceraw docstring

save-weightsclj

(save-weights path weights)
source

update-generator-objclj

(update-generator-obj obj & {:keys [weights start]})

Return a new generator object with runtime properties adjusted (those that don't require eval of the function source again). Only weights and start rule are supported currently.

Return a new generator object with runtime properties adjusted
(those that don't require eval of the function source again). Only
weights and start rule are supported currently.
sourceraw docstring

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

× close