package elpi

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

Module API.QuotationSource

Sourcetype quotation = language:Ast.Scope.language -> State.t -> Ast.Loc.t -> string -> Ast.Term.t
Sourceval set_default_quotation : ?descriptor:Setup.quotations_descriptor -> quotation -> unit

The default quotation {{code}}

Sourceval register_named_quotation : ?descriptor:Setup.quotations_descriptor -> name:string -> quotation -> Ast.Scope.language

Named quotation {{name:code}}

Sourceval elpi_language : Ast.Scope.language

The anti-quotation to lambda Prolog

Sourceval elpi : quotation

Like quotations but for identifiers that begin and end with * "`" or "'", e.g. `this` and 'that'. Useful if the object language * needs something that looks like a string but with a custom compilation * (e.g. CD.string like but with a case insensitive comparison)

Sourceval declare_backtick : ?descriptor:Setup.quotations_descriptor -> name:string -> quotation -> Ast.Scope.language
Sourceval declare_singlequote : ?descriptor:Setup.quotations_descriptor -> name:string -> quotation -> Ast.Scope.language
Sourceval new_quotations_descriptor : unit -> Setup.quotations_descriptor
OCaml

Innovation. Community. Security.