Merge with cfg
This commit is contained in:
@ -5,7 +5,8 @@ Random.self_init ()
|
||||
|
||||
let (let*) = Result.bind
|
||||
|
||||
let evaluate_type_polimorphic (_program: t_exp) (_context: typingshape) : (typingshape, error) result =
|
||||
let evaluate_type_polimorphic (_program: t_exp) (_context: typingshape)
|
||||
: (typingshape, error) result =
|
||||
failwith "Not implemented"
|
||||
(* match program with *)
|
||||
(* Integer _ -> Ok (VariableMap.empty, IntegerType) *)
|
||||
@ -13,7 +14,7 @@ let evaluate_type_polimorphic (_program: t_exp) (_context: typingshape) : (typin
|
||||
(* | Variable x -> ( *)
|
||||
(* match (VariableMap.find_opt x (fst context)) with *)
|
||||
(* (None) -> ( *)
|
||||
(* let u = PolimorphicType (Utility.fromIntToString !globalIdentifier) in *)
|
||||
(* let u = PolimorphicType (Utility.from_int_to_string !globalIdentifier) in *)
|
||||
(* globalIdentifier := !globalIdentifier + 1; *)
|
||||
(* Ok (VariableMap.singleton x u, u) *)
|
||||
(* ) *)
|
||||
|
||||
Reference in New Issue
Block a user