rename operators to predefined

This commit is contained in:
Pierre-Emmanuel Wulfman 2020-06-12 14:16:17 +02:00
parent aa849f6dcb
commit 02d66cf536
18 changed files with 16 additions and 20 deletions

View File

@ -14,7 +14,7 @@
ast_typed ast_typed
spilling spilling
mini_c mini_c
operators predefined
stacking stacking
compile compile
) )

View File

@ -19,7 +19,7 @@ let pseq_to_list = function
| Some lst -> npseq_to_list lst | Some lst -> npseq_to_list lst
let get_value : 'a Raw.reg -> 'a = fun x -> x.value let get_value : 'a Raw.reg -> 'a = fun x -> x.value
open Operators.Tree_abstraction.Cameligo open Predefined.Tree_abstraction.Cameligo
let r_split = Location.r_split let r_split = Location.r_split

View File

@ -6,7 +6,7 @@
tezos-utils tezos-utils
cst cst
ast_imperative ast_imperative
operators) predefined)
(preprocess (preprocess
(pps (pps
ppx_let ppx_let

View File

@ -2,12 +2,8 @@
(name tree_abstraction) (name tree_abstraction)
(public_name ligo.tree_abstraction) (public_name ligo.tree_abstraction)
(libraries (libraries
simple-utils
tezos-utils
cameligo cameligo
pascaligo pascaligo)
ast_imperative
operators)
(preprocess (preprocess
(pps (pps
ppx_let ppx_let

View File

@ -12,7 +12,7 @@ let npseq_to_ne_list (hd, tl) = (hd, List.map snd tl)
let (<@) f g x = f (g x) let (<@) f g x = f (g x)
open Operators.Tree_abstraction.Pascaligo open Predefined.Tree_abstraction.Pascaligo
let r_split = Location.r_split let r_split = Location.r_split

View File

@ -6,7 +6,7 @@
tezos-utils tezos-utils
cst cst
ast_imperative ast_imperative
operators) predefined)
(preprocess (preprocess
(pps (pps
ppx_let ppx_let

View File

@ -6,7 +6,7 @@
tezos-utils tezos-utils
ast_core ast_core
ast_typed ast_typed
operators predefined
UnionFind UnionFind
environment environment
typer_common typer_common

View File

@ -8,7 +8,7 @@
ast_core ast_core
ast_typed ast_typed
typer_new typer_new
operators predefined
environment environment
) )
(preprocess (preprocess

View File

@ -8,7 +8,7 @@
ast_typed ast_typed
typer_old typer_old
typer_new typer_new
operators predefined
) )
(preprocess (preprocess
(pps ppx_let bisect_ppx --conditional) (pps ppx_let bisect_ppx --conditional)

View File

@ -7,7 +7,7 @@
ast_typed ast_typed
mini_c mini_c
self_mini_c self_mini_c
operators predefined
) )
(preprocess (preprocess
(pps ppx_let bisect_ppx --conditional) (pps ppx_let bisect_ppx --conditional)

View File

@ -3,11 +3,11 @@ open Errors
open Mini_c open Mini_c
open Michelson open Michelson
open Memory_proto_alpha.Protocol.Script_ir_translator open Memory_proto_alpha.Protocol.Script_ir_translator
open Operators.Stacking open Predefined.Stacking
(* This does not makes sense to me *) (* This does not makes sense to me *)
let rec get_operator : constant' -> type_expression -> expression list -> (predicate , stacking_error) result = fun s ty lst -> let rec get_operator : constant' -> type_expression -> expression list -> (predicate , stacking_error) result = fun s ty lst ->
match Operators.Stacking.get_operators s with match Predefined.Stacking.get_operators s with
| Some x -> ok x | Some x -> ok x
| None -> ( | None -> (
match s with match s with

View File

@ -4,7 +4,7 @@ open Mini_c
open Michelson open Michelson
open Memory_proto_alpha.Protocol.Script_ir_translator open Memory_proto_alpha.Protocol.Script_ir_translator
open Operators.Stacking open Predefined.Stacking
(* (*
module Contract_types = Meta_michelson.Types module Contract_types = Meta_michelson.Types

View File

@ -6,7 +6,7 @@
proto-alpha-utils proto-alpha-utils
tezos-utils tezos-utils
mini_c mini_c
operators predefined
) )
(preprocess (preprocess
(pps ppx_let bisect_ppx --conditional) (pps ppx_let bisect_ppx --conditional)

View File

@ -1,6 +1,6 @@
(library (library
(name operators) (name predefined)
(public_name ligo.operators) (public_name ligo.predefined)
(libraries (libraries
simple-utils simple-utils
tezos-utils tezos-utils