You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[@@@ocaml.text " This module is the API for clients of the Elpi library. "]
4
4
[@@@ocaml.text
@@ -215,14 +215,23 @@ sig
215
215
type'a declaration =
216
216
{
217
217
name: name;
218
+
cname: name;
218
219
doc: doc;
219
220
pp: Format.formatter -> 'a -> unit;
220
221
compare: 'a -> 'a -> int;
221
222
hash: 'a -> int;
222
223
hconsed: bool;
223
224
constants: (name*'a) list }[@@ocaml.doc
224
225
" The [eq] function is used by unification. Limitation: unification of\n * two cdata cannot alter the constraint store. This can be lifted in the\n * future if there is user request.\n *\n * If the hconsed is true, then the [readback] function is\n * automatically hashcons the data using the [eq] and [hash] functions.\n "]
" Commodity module to build a simple query\n and extract the output from the solution found by Elpi.\n\n Example: \"foo data Output\" where [data] has type [t] ([a] is [t Conversion.t])\n and [Output] has type [v] ([b] is a [v Conversion.t]) can be described as:\n{[\n\n let q : (v * unit) t = Query {\n predicate = \"foo\";\n arguments = D(a, data,\n Q(b, \"Output\",\n N))\n }\n\n ]}\n\n Then [compile q] can be used to obtain the compiled query such that the\n resulting solution has a fied output of type [(v * unit)]. Example:\n{[\n\n Query.compile q |> Compile.link |> Execute.once |> function\n | Execute.Success { output } -> output\n | _ -> ...\n\n ]} "]
@@ -503,30 +516,15 @@ sig
503
516
end
504
517
moduleRawOpaqueData :
505
518
sig
506
-
typename = string
507
-
typedoc = string
508
519
typet
509
-
type'a declaration = 'aOpaqueData.declaration=
510
-
{
511
-
name: name;
512
-
doc: doc;
513
-
pp: Format.formatter -> 'a -> unit;
514
-
compare: 'a -> 'a -> int;
515
-
hash: 'a -> int;
516
-
hconsed: bool;
517
-
constants: (name*'a) list }[@@ocaml.doc
518
-
" If the data_hconsed is true, then the [cin] function below will\n automatically hashcons the data using the [eq] and [hash] functions. "]
0 commit comments