X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=compiler%2Fsrc%2Flib%2Ftiger%2Ftiger_error.mli;h=d7c2e795afb343cf852fef955dc38f285aa519d0;hb=1d155dc1b6399ec69573fc8043f2ec2a96490b50;hp=92fde5d73cea5983388984c29240981224bf7f3f;hpb=161a300dddce2df54b21863ae94e2dda281906fd;p=tiger.ml.git diff --git a/compiler/src/lib/tiger/tiger_error.mli b/compiler/src/lib/tiger/tiger_error.mli index 92fde5d..d7c2e79 100644 --- a/compiler/src/lib/tiger/tiger_error.mli +++ b/compiler/src/lib/tiger/tiger_error.mli @@ -28,6 +28,11 @@ type t = ; ty : Typ.t ; pos : Pos.t } + | Wrong_type_used_as_array of + { ty_id : Sym.t + ; ty : Typ.t + ; pos : Pos.t + } | Wrong_type_of_field_value of { field_id : Sym.t ; expected : Typ.t @@ -65,4 +70,10 @@ 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_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