Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Raphaël Cauderlier
Sigmaid
Commits
5b42976b
Commit
5b42976b
authored
Jun 30, 2014
by
Raphaël Cauderlier
Browse files
Don't cast for check directive
parent
107305e5
Changes
2
Hide whitespace changes
Inline
Side-by-side
printer.ml
View file @
5b42976b
...
...
@@ -107,7 +107,7 @@ let print_line out_fmter = function
print_term
def
|
Tcheck
(
t
,
ty
)
->
Format
.
fprintf
out_fmter
"@[#CHECK %a,@ dk_obj.Expr@ (%a).@]@
\n
"
print_term
(
Tcast
(
t
,
infer
t
,
ty
))
print_term
t
print_ty
ty
|
Tnorm
t
->
Format
.
fprintf
out_fmter
"@[#SNF %a.@]@
\n
"
...
...
typer.ml
View file @
5b42976b
...
...
@@ -209,11 +209,7 @@ let type_line = function
|
Stypedef
(
a
,
ty
)
->
Ttypedef
(
a
,
ty
)
|
Svardef
(
id
,
ty
,
def
)
->
Tvardef
(
id
,
ty
,
type_term
[]
def
)
|
Scheck
(
t
,
ty
)
->
let
tt
=
type_term
[]
t
in
if
subtype
(
infer
tt
)
ty
then
Tcheck
(
tt
,
ty
)
else
raise
Check_failed
let
tt
=
type_check
[]
t
ty
in
Tcheck
(
tt
,
ty
)
|
Snorm
t
->
Tnorm
(
type_term
[]
t
)
let
type_check
=
List
.
map
type_line
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment