X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fcic_disambiguation%2Fpa_unicode_macro.ml;h=dc15b8c8b2a264b7bd37783df30a0580528e9a8b;hb=ebc089606ccbb3e9dbde142542a1f98f5020b4dd;hp=b1a9153ca754d618cdd0034fbfc90e7a5ede65a0;hpb=358d1d55044347255aacb8daf03de0dbb18bc668;p=helm.git diff --git a/helm/ocaml/cic_disambiguation/pa_unicode_macro.ml b/helm/ocaml/cic_disambiguation/pa_unicode_macro.ml index b1a9153ca..dc15b8c8b 100644 --- a/helm/ocaml/cic_disambiguation/pa_unicode_macro.ml +++ b/helm/ocaml/cic_disambiguation/pa_unicode_macro.ml @@ -26,11 +26,16 @@ let debug = false let debug_print s = if debug then prerr_endline s -let loc = (0, 0) +let loc = + let dummy_pos = + { Lexing.pos_fname = ""; Lexing.pos_lnum = -1; Lexing.pos_bol = -1; + Lexing.pos_cnum = -1 } + in + (dummy_pos, dummy_pos) let expand_unicode_macro macro = debug_print (Printf.sprintf "Expanding macro '%s' ..." macro); - let expansion = Macro.expand macro in + let expansion = CicTextualParser2Macro.expand macro in <:expr< $str:expansion$ >> let _ =