package elpi
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
This module lets one extend the compiler by: * - "compiling" the query by hand * - providing quotations
module State : sig ... end
In order to implement quotations one may * need to stick some data into the compiler state that can indeed be * extended. A piece of compiler state can also be kept and used at runtime, * e.g. if it contains some custom constraints, see CustomState
val query :
Compile.program ->
(depth:int -> State.t -> State.t * Data.term) ->
Compile.query
Generate a query starting from a compiled/hand-made term
From an unparsed string to a term
val set_default_quotation : quotation -> unit
The default quotation {{code}}
val register_named_quotation : name:string -> quotation -> unit
Named quotation {{name:code}}
val lp : quotation
The anti-quotation to lambda Prolog
val quote_syntax : Compile.query -> Data.term list * Data.term
See elpi_quoted_syntax.elpi (EXPERIMENTAL, used by elpi-checker)
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>