try
let statement = GrafiteParser.parse_statement istream in
let floc = extract_loc statement in
- let (_, y) = P.loc_of_floc floc in
+ let (_, y) = HExtlib.loc_of_floc floc in
char_count := y + !char_count;
match statement with
(* | G.Executable (_, G.Macro (_, G.Check (_,
| _ -> prerr_endline "Unsupported statement"
with
| End_of_file -> raise End_of_file
- | CicNotationParser.Parse_error (floc, msg) ->
- let (x, y) = P.loc_of_floc floc in
+ | HExtlib.Localized (floc,CicNotationParser.Parse_error msg) ->
+ let (x, y) = HExtlib.loc_of_floc floc in
(* let before = String.sub line 0 x in
let error = String.sub line x (y - x) in
let after = String.sub line y (String.length line - y) in