Liking cljdoc? Tell your friends :D

panini.core

Define syntax with plain clojure.spec.alpha forms.

Define syntax with plain clojure.spec.alpha forms.
raw docstring

compileclj

(compile form)
(compile form opts)

Compile a syntax call form.

By default, invalid input throws ex-info. Pass {:on-error :invalid} to return ::invalid instead.

Compile a syntax call form.

By default, invalid input throws ex-info. Pass {:on-error :invalid}
to return ::invalid instead.
sourceraw docstring

define-rulecljmacro

(define-rule name & args)

Define a named grammar fragment in plain Spec.

Define a named grammar fragment in plain Spec.
sourceraw docstring

define-syntaxcljmacro

(define-syntax name & args)

Define a macro backed by a Spec grammar.

Define a macro backed by a Spec grammar.
sourceraw docstring

grammarclj

(grammar definition)

Return the quoted grammar originally used to define a rule or syntax.

Return the quoted grammar originally used to define a rule or syntax.
sourceraw docstring

parseclj

(parse form)

Parse a syntax call form. Returns ::invalid on failure.

Parse a syntax call form. Returns ::invalid on failure.
sourceraw docstring

pretty-grammarclj

(pretty-grammar definition)

Render a rule or syntax definition as a compact usage string.

Render a rule or syntax definition as a compact usage string.
sourceraw docstring

rule?clj

(rule? x)

True when x resolves to a rule definition.

True when x resolves to a rule definition.
sourceraw docstring

syntax?clj

(syntax? x)

True when x resolves to a syntax definition.

True when x resolves to a syntax definition.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close