diff options
author | aspiwack <aspiwack@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2011-05-13 17:57:41 +0000 |
---|---|---|
committer | aspiwack <aspiwack@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2011-05-13 17:57:41 +0000 |
commit | edcf0d8b8bff399443ddf4cd436185c33bf59829 (patch) | |
tree | b95d6dd4ae5ccae0114b2fa27c00bcd89f445f78 /parsing | |
parent | 1b906116b43f5975fef7bb6f4dfb9589cfe3d6ee (diff) |
A new mechanism to handle errors.
Instead of the monolitic Cerrors, I introduce a lightweight Errors module
whose error message can be expanded by module introducing exceptions.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@14119 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'parsing')
-rw-r--r-- | parsing/grammar.mllib | 1 | ||||
-rw-r--r-- | parsing/tacextend.ml4 | 2 | ||||
-rw-r--r-- | parsing/vernacextend.ml4 | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/parsing/grammar.mllib b/parsing/grammar.mllib index 02e27827b..30376eeda 100644 --- a/parsing/grammar.mllib +++ b/parsing/grammar.mllib @@ -8,6 +8,7 @@ Flags Segmenttree Unicodetable Util +Errors Bigint Dyn Hashcons diff --git a/parsing/tacextend.ml4 b/parsing/tacextend.ml4 index ec305ee2e..2fe1fdda7 100644 --- a/parsing/tacextend.ml4 +++ b/parsing/tacextend.ml4 @@ -163,7 +163,7 @@ let declare_tactic loc s cl = (Tacexpr.TacAtom($default_loc$, Tacexpr.TacExtend($default_loc$,s,[])))) $atomic_tactics$ - with e -> Pp.pp (Cerrors.explain_exn e); + with e -> Pp.pp (Errors.print e); Egrammar.extend_tactic_grammar $se$ $gl$; List.iter Pptactic.declare_extra_tactic_pprule $pp$; } >> ]) diff --git a/parsing/vernacextend.ml4 b/parsing/vernacextend.ml4 index cc3bd07e8..88a750792 100644 --- a/parsing/vernacextend.ml4 +++ b/parsing/vernacextend.ml4 @@ -54,7 +54,7 @@ let declare_command loc s nt cl = declare_str_items loc [ <:str_item< do { try Vernacinterp.vinterp_add $mlexpr_of_string s$ $funcl$ - with e -> Pp.pp (Cerrors.explain_exn e); + with e -> Pp.pp (Errors.print e); Egrammar.extend_vernac_command_grammar $mlexpr_of_string s$ $nt$ $gl$ } >> ] |