home
/
code
/
tiger.ml.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Expect more book errors
[tiger.ml.git]
/
compiler
/
src
/
lib
/
tiger
/
tiger_error.mli
diff --git
a/compiler/src/lib/tiger/tiger_error.mli
b/compiler/src/lib/tiger/tiger_error.mli
index
92fde5d
..
d7c2e79
100644
(file)
--- 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
}
; 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
| 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 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
This page took
0.025725 seconds
and
4
git commands to generate.