2019-10-03 15:32:16 -07:00
|
|
|
(** 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
|
2019-10-03 15:32:16 -07:00
|
|
|
|
|
|
|
module Raw = Parser.Pascaligo.AST
|
|
|
|
module SMap = Map.String
|
|
|
|
|
2020-03-16 14:28:05 +01:00
|
|
|
(** Convert a concrete PascaLIGO expression AST to the imperative
|
2020-01-09 17:26:07 +01:00
|
|
|
expression AST used by the compiler. *)
|
2020-06-12 13:33:14 +02:00
|
|
|
val compile_expression : Raw.expr -> (expr , Errors_pascaligo.abs_error) result
|
2019-10-03 15:32:16 -07:00
|
|
|
|
2020-03-16 14:28:05 +01:00
|
|
|
(** Convert a concrete PascaLIGO program AST to the miperative program
|
2020-01-09 17:26:07 +01:00
|
|
|
AST used by the compiler. *)
|
2020-06-12 13:33:14 +02:00
|
|
|
val compile_program : Raw.ast -> (program, Errors_pascaligo.abs_error) result
|