package ecaml

  1. Overview
  2. Docs

An Emacs expression.

type t
include sig ... end
val sexp_of_t : t -> Sexplib.Sexp.t
val of_value : Value.t -> t

Emacs expressions are values, and vice versa, so of_value and to_value are implemented as the identity function.

val to_value : t -> Value.t
val eval : t -> Value.t

Evaluate an expression, using the Emacs eval function.

val of_string : string -> t

Convert a string to an expression, using the Emacs read function.

val string : string -> t
val symbol : Symbol.t -> t
val apply : t -> t -> t
val quote : t -> t
val progn : t list -> t
val lambda : ?docstring:string -> ?interactive:string -> ?optional_args:Symbol.t list -> ?rest_arg:Symbol.t -> unit -> args:Symbol.t list -> body:t -> t
val combination : t list -> t

Generally, a function call, macro application, or syntax form.

OCaml

Innovation. Community. Security.