16 lines
541 B
OCaml
Raw Normal View History

(** Converts PascaLIGO programs to the Simplified Abstract Syntax Tree. *)
2019-10-07 14:18:32 +00:00
open Trace
2020-03-12 23:20:39 +01:00
open Ast_imperative
module Raw = Parser.Pascaligo.AST
module SMap = Map.String
(** Convert a concrete PascaLIGO expression AST to the imperative
expression AST used by the compiler. *)
val compile_expression : Raw.expr -> (expr , Errors_pascaligo.abs_error) result
(** Convert a concrete PascaLIGO program AST to the miperative program
AST used by the compiler. *)
val compile_program : Raw.ast -> (program, Errors_pascaligo.abs_error) result