module Ast = CicNotationPt
module Env = CicNotationEnv
-exception Parse_error of Token.flocation * string
+exception Parse_error of string
exception Level_not_found of int
let level1_pattern_grammar =
f ()
with
| Stdpp.Exc_located (floc, Stream.Error msg) ->
- raise (Parse_error (floc, msg))
+ raise (HExtlib.Localized (floc, Parse_error msg))
| Stdpp.Exc_located (floc, exn) ->
- raise (Parse_error (floc, (Printexc.to_string exn)))
+ raise (HExtlib.Localized (floc, (Parse_error (Printexc.to_string exn))))
let parse_level1_pattern lexbuf =
exc_located_wrapper