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=afc9f63afb142e188bc2972bc467ff7a46267d2b;hpb=aba014724c9ad08f80944ec3021c9fa3826dca4a;p=helm.git diff --git a/helm/ocaml/cic_disambiguation/pa_unicode_macro.ml b/helm/ocaml/cic_disambiguation/pa_unicode_macro.ml index afc9f63af..dc15b8c8b 100644 --- a/helm/ocaml/cic_disambiguation/pa_unicode_macro.ml +++ b/helm/ocaml/cic_disambiguation/pa_unicode_macro.ml @@ -24,13 +24,18 @@ *) let debug = false -let debug_print = if debug then prerr_endline else ignore +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 _ =