package elpi

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module API.CompileSource

Sourcemodule StrSet : sig ... end
Sourcetype flags = {
  1. defined_variables : StrSet.t;
  2. print_passes : bool;
  3. print_units : bool;
}
Sourceval default_flags : flags
Sourceval to_setup_flags : flags -> Setup.flags
Sourcetype program
Sourcetype 'a query
Sourcetype 'a executable
Sourceexception CompileError of Ast.Loc.t option * string
Sourceval program : ?flags:flags -> elpi:Setup.elpi -> Ast.program list -> program
Sourcetype compilation_unit
Sourceval unit : ?flags:flags -> elpi:Setup.elpi -> Ast.program -> compilation_unit
Sourceval assemble : ?flags:flags -> elpi:Setup.elpi -> compilation_unit list -> program
Sourceval extend : ?flags:flags -> base:program -> compilation_unit list -> program
Sourceval query : program -> Ast.query -> unit query
Sourceval optimize : 'a query -> 'a executable
Sourceval static_check : checker:program -> 'a query -> bool

Runs a checker. Returns true if no errors were found. See also Builtins.default_checker.

OCaml

Innovation. Community. Security.