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
cduce
cduce
Commits
4b36bdb3
Commit
4b36bdb3
authored
Oct 05, 2007
by
Pietro Abate
Browse files
[r2005-07-30 08:24:00 by afrisch] Empty log message
Original author: afrisch Date: 2005-07-30 08:25:28+00:00
parent
a005c140
Changes
2
Hide whitespace changes
Inline
Side-by-side
runtime/explain.ml
View file @
4b36bdb3
...
...
@@ -141,3 +141,11 @@ let do_check d v =
let
p
=
simplify
p
in
let
s
=
print_to_string
print
p
in
raise
(
CDuceExn
(
string_latin1
s
))
let
check_failure
d
v
=
try
check
d
v
;
v
with
Failed
p
->
let
p
=
simplify
p
in
let
s
=
print_to_string
print
p
in
failwith
s
runtime/explain.mli
View file @
4b36bdb3
...
...
@@ -12,3 +12,6 @@ val check: Auto_pat.state -> Value.t -> unit
val
do_check
:
Auto_pat
.
state
->
Value
.
t
->
Value
.
t
(** Same, but raise a CDuce exception. *)
val
check_failure
:
Auto_pat
.
state
->
Value
.
t
->
Value
.
t
(** Raise [Failure ...]. *)
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