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
|
2019-10-03 15:32:16 -07:00
|
|
|
open Ast_simplified
|
|
|
|
|
|
|
|
module Raw = Parser.Pascaligo.AST
|
|
|
|
module SMap = Map.String
|
|
|
|
|
2019-10-16 15:39:08 +02:00
|
|
|
module Errors :
|
|
|
|
sig
|
|
|
|
val bad_bytes : Location.t -> string -> unit -> error
|
|
|
|
end
|
2019-10-08 13:46:25 -07:00
|
|
|
|
|
|
|
|
2019-10-16 15:39:08 +02:00
|
|
|
(** Convert a concrete PascaLIGO expression AST to the simplified expression AST
|
2019-10-03 15:32:16 -07:00
|
|
|
used by the compiler. *)
|
2019-10-07 14:18:32 +00:00
|
|
|
val simpl_expression : Raw.expr -> expr result
|
2019-10-03 15:32:16 -07:00
|
|
|
|
2019-10-16 15:39:08 +02:00
|
|
|
(** Convert a concrete PascaLIGO program AST to the simplified program AST used
|
2019-10-03 15:32:16 -07:00
|
|
|
by the compiler. *)
|
2019-10-07 14:18:32 +00:00
|
|
|
val simpl_program : Raw.ast -> program result
|