Open n-osborne opened 7 months ago
After further investigation, the tuple0
is placed by the parser.
In case we have a pattern but no term (raises E _
), the parser will insert a Ttrue
.
I believe there are two ways to go:
(xsymbol * pattern option * term) list
(pattern * term) list
which is even simpler
In the current version, exceptional post-conditions are represented with the type :
(xsymbol * (pattern * term) list) list
This doesn't work well with exception that doesn't have any arguments. For example in:
the type checker has to fill for the pattern. It wil linsert a
tuple0
pattern, I believe because the type ofE
isExn_tuple []
.