:regal schema::rm/regal schemalambdaisland.regal.malli(lambdaisland.regal.malli.generator/register-regal-generator) to register a generator at testing time.
lambdaisland.regal.malli for more information.Support for Google RE2
Lazy qualifiers: :*?, :+?, :??, and :lazy-repeat
lambdaisland.regal.generator/sample and
lambdaisland.regal.generator/generate now can take an optional size and (for
generate) seed:any generator does not generate \return or \newlinenormalize should understand [:not :whitespace]lambdaisland.regal.generator/generate as a shorthand for generating a
single value from a regal expression[:repeat form num] (so fixed number of repeats, instead of
min/max) to the generator\s and \S to to semantically equivalent forms, instead
of incorrectly parsing to :whitespace / :non-whitespace:any should not generate newlines (now also for cljs)[:char ...] for code point literal[:ctrl ...] for control character literals:line-break, :alert, :escape, :vertical-whitespace, :vertical-tab[:(negative-)lookahead ... ] positve/negative lookahead[:(negative-)lookbehind ...] positive/negative lookbehind[:atomic ...] atomic groups (prevent backtracking)\w \W \d \D \s \S+ * ? {1,2}lambdaisland.regal.normalize for getting a canonicalized version of a regal form:whitespace behave consistently across platformsjava.runtime.version (GraalVM compat)& inside a bracketed character class[:range from to], instead use [:class [from to]]:whitespace inside [:class ...] or [:not ...] will throw an
AssertionError, since we can't support it across platformsInitial version of Regal as presented at ClojureD. Not officially released.
Can you improve this documentation? These fine people already did:
Arne Brasseur, A Brooks, Alys Brooks, Ambrose Bonnaire-Sergeant, Dan Dorman, Zohar Kelrich & erichkoliphantEdit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |