package elpi

  1. Overview
  2. Docs
ELPI - Embeddable λProlog Interpreter

Install

Dune Dependency

Authors

Maintainers

Sources

elpi-2.0.7.tbz
sha256=80233ebd92babd696148ed553238961ec7b6de6bf157045aae1c7090840aeded
sha512=00c9ec01fabde9db1de4a58cb37480035e6f926d83b8360553419bcb99e9199f0720dde975f97ac9942ce528884d3d59d025cfbd471f12d57547429f15684d49

doc/elpi.parser/Elpi_parser/Ast/Structured/index.html

Module Ast.StructuredSource

Sourcetype program = {
  1. macros : (Func.t, Term.t) Macro.t list;
  2. kinds : (unit, unit) Type.t list;
  3. types : (tattribute, functionality) Type.t list;
  4. type_abbrevs : (Func.t, functionality TypeExpression.t) TypeAbbreviation.t list;
  5. modes : (tattribute, functionality) Type.t list;
  6. body : block list;
}
Sourceand ('func, 'term) block_constraint = {
  1. clique : 'func list;
  2. ctx_filter : 'func list;
  3. rules : (cattribute, 'term) Chr.t list;
}
Sourceand block =
  1. | Clauses of (Term.t, attribute, unit) Clause.t list
  2. | Namespace of Func.t * program
  3. | Shorten of Func.t shorthand list * program
  4. | Constraints of (Func.t, Term.t) block_constraint * program
  5. | Accumulated of program
Sourceand attribute = {
  1. insertion : insertion option;
  2. id : string option;
  3. ifexpr : string option;
  4. typecheck : bool;
}
Sourceand insertion =
  1. | Insert of insertion_place
  2. | Replace of string
  3. | Remove of string
Sourceand insertion_place =
  1. | Before of string
  2. | After of string
Sourceand cattribute = {
  1. cid : string;
  2. cifexpr : string option;
}
Sourceand tattribute =
  1. | External
  2. | Index of int list * tindex option
Sourceand tindex =
  1. | Map
  2. | HashMap
  3. | DiscriminationTree
Sourceand 'a shorthand = {
  1. iloc : Loc.t;
  2. full_name : 'a;
  3. short_name : 'a;
}
Sourceand functionality =
  1. | Function
  2. | Relation
Sourceand variadic =
  1. | Variadic
  2. | NotVariadic
Sourceval compare_program : program -> program -> Ppx_deriving_runtime.int
Sourceval compare_block_constraint : ('func -> 'func -> Ppx_deriving_runtime.int) -> ('term -> 'term -> Ppx_deriving_runtime.int) -> ('func, 'term) block_constraint -> ('func, 'term) block_constraint -> Ppx_deriving_runtime.int
Sourceval compare_block : block -> block -> Ppx_deriving_runtime.int
Sourceval compare_attribute : attribute -> attribute -> Ppx_deriving_runtime.int
Sourceval compare_insertion : insertion -> insertion -> Ppx_deriving_runtime.int
Sourceval compare_tindex : tindex -> tindex -> Ppx_deriving_runtime.int
Sourceval compare_shorthand : ('a -> 'a -> Ppx_deriving_runtime.int) -> 'a shorthand -> 'a shorthand -> Ppx_deriving_runtime.int
Sourceval compare_variadic : variadic -> variadic -> Ppx_deriving_runtime.int
OCaml

Innovation. Community. Security.