X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=compiler%2Fsrc%2Flib%2Ftiger%2Ftiger_error.mli;h=0344269936ff5e0a895fb611ced8f247bab4418a;hb=HEAD;hp=eba33f2b964b62a36c09a793cf0b6cdb90de8e7f;hpb=4c550cd5b9653add413e21d06c73efe3aa657e06;p=tiger.ml.git diff --git a/compiler/src/lib/tiger/tiger_error.mli b/compiler/src/lib/tiger/tiger_error.mli index eba33f2..0344269 100644 --- a/compiler/src/lib/tiger/tiger_error.mli +++ b/compiler/src/lib/tiger/tiger_error.mli @@ -4,6 +4,13 @@ module Sym = Tiger_symbol module Typ = Tiger_env_type type t = + | Cycle_in_type_decs of + { from_id : Sym.t + ; from_pos : Pos.t + ; to_id : Sym.t + ; to_pos : Pos.t + } + | Break_outside_loop of Pos.t | Invalid_syntax of Pos.t | Unknown_id of {id : Sym.t; pos : Pos.t} | Unknown_type of {ty_id : Sym.t; pos : Pos.t} @@ -70,4 +77,13 @@ val raise : t -> 'a val to_string : t -> string -val is_unknown_id : t -> bool +val is_unknown_id : t -> bool +val is_unknown_type : t -> bool +val is_wrong_type : t -> bool +val is_wrong_number_of_args : t -> bool +val is_invalid_syntax : t -> bool +val is_not_a_record : t -> bool +val is_not_an_array : t -> bool +val is_no_such_field_in_record : t -> bool +val is_cycle_in_type_dec : t -> bool +val is_break_outside_loop : t -> bool