aboutsummaryrefslogtreecommitdiff
path: root/toplevel
diff options
context:
space:
mode:
authorfilliatr1999-12-03 16:23:22 +0000
committerfilliatr1999-12-03 16:23:22 +0000
commit4a2b9073e61de1ab000b26652d94e63b382ce7d2 (patch)
tree73b7d5f031de7fb58f639fc3a974bb5bbafa4347 /toplevel
parent64dfc220b6307c867078ee5a860e92604f6df694 (diff)
bug make_strength repare
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@200 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'toplevel')
-rw-r--r--toplevel/vernac.ml52
1 files changed, 26 insertions, 26 deletions
diff --git a/toplevel/vernac.ml b/toplevel/vernac.ml
index f6f696ea32..e3adda7f0d 100644
--- a/toplevel/vernac.ml
+++ b/toplevel/vernac.ml
@@ -91,33 +91,33 @@ let just_parsing = ref false
let rec vernac interpfun input =
let com = parse_phrase input in
let rec interp com =
- try
- match com with
- | Node (_,"LoadFile",[Str(_, verbosely); Str(_,fname)]) ->
- let verbosely = verbosely = "Verbose" in
- raw_load_vernac_file verbosely (make_suffix fname ".v")
-
- | Node (_,"CompileFile",[Str(_,verbosely); Str(_,only_spec);
- Str (_,mname); Str(_,fname)]) ->
- let verbosely = verbosely = "Verbose" in
- let only_spec = only_spec = "Specification" in
- States.with_heavy_rollback (* to roll back in case of error *)
- (raw_compile_module verbosely only_spec mname)
- (make_suffix fname ".v")
-
- | Node(_,"Time",l) ->
- let tstart = System.get_time() in
- List.iter interp l;
- let tend = System.get_time() in
- mSGNL [< 'sTR"Finished transaction in " ;
- System.fmt_time_difference tstart tend >]
-
- | _ -> if not !just_parsing then interpfun com
- with e ->
- raise (DuringCommandInterp (Ast.loc com, e))
+ match com with
+ | Node (_,"LoadFile",[Str(_, verbosely); Str(_,fname)]) ->
+ let verbosely = verbosely = "Verbose" in
+ raw_load_vernac_file verbosely (make_suffix fname ".v")
+
+ | Node (_,"CompileFile",[Str(_,verbosely); Str(_,only_spec);
+ Str (_,mname); Str(_,fname)]) ->
+ let verbosely = verbosely = "Verbose" in
+ let only_spec = only_spec = "Specification" in
+ States.with_heavy_rollback (* to roll back in case of error *)
+ (raw_compile_module verbosely only_spec mname)
+ (make_suffix fname ".v")
+
+ | Node(_,"Time",l) ->
+ let tstart = System.get_time() in
+ List.iter interp l;
+ let tend = System.get_time() in
+ mSGNL [< 'sTR"Finished transaction in " ;
+ System.fmt_time_difference tstart tend >]
+
+ | _ -> if not !just_parsing then interpfun com
in
- interp com
-
+ try
+ interp com
+ with e ->
+ raise (DuringCommandInterp (Ast.loc com, e))
+
and raw_load_vernac_file verbosely s =
let _ = read_vernac_file verbosely s in ()