package zelus

  1. Overview
  2. Docs

The compiler

val lexical_error : 'a -> Zlocation.location -> 'b
val syntax_error : Zlocation.location -> 'a
val parse : ('a -> Stdlib.Lexing.lexbuf -> 'b) -> 'a -> string -> 'b
val parse_implementation_file : string -> Zparsetree.implementation list
val parse_interface_file : string -> Zparsetree.interface list
val parse_scalar_interface_file : string -> Zparsetree.interface list
val compile_interface : (string -> Zparsetree.interface_desc Zparsetree.localized list) -> string -> string -> string -> unit
val scalar_interface : string -> string -> unit
val interface : string -> string -> unit
val apply_with_close_out : (Stdlib.out_channel -> 'a) -> Stdlib.out_channel -> unit
val compile : string -> string -> unit

The main function for compiling a program

OCaml

Innovation. Community. Security.