X-Git-Url: https://git.xandkar.net/?p=tiger.ml.git;a=blobdiff_plain;f=compiler%2Fsrc%2Flib%2Ftiger%2Ftiger_error.mli;fp=compiler%2Fsrc%2Flib%2Ftiger%2Ftiger_error.mli;h=0344269936ff5e0a895fb611ced8f247bab4418a;hp=73505b87da415f7c0a0618eb7fe9e4c782341ce8;hb=35dccbd3999a8c3bb1dc9e96e21b69a39f44fc6f;hpb=e6e82c0866db4eb08f956b2582e5c2ed5399e986 diff --git a/compiler/src/lib/tiger/tiger_error.mli b/compiler/src/lib/tiger/tiger_error.mli index 73505b8..0344269 100644 --- a/compiler/src/lib/tiger/tiger_error.mli +++ b/compiler/src/lib/tiger/tiger_error.mli @@ -10,6 +10,7 @@ type 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} @@ -85,3 +86,4 @@ 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