X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fmatitac.ml;h=34e0639e3aa62ebfd422fb7a02c7a5ac7e5d1d6b;hb=00f8f919262e3c84dd9e42477092cc1312171493;hp=be6546e8d237437e803f29558289be92929e1c8c;hpb=b49a7265f5da01f89b5c845f52b31c2f728cc293;p=helm.git diff --git a/matita/matitac.ml b/matita/matitac.ml index be6546e8d..34e0639e3 100644 --- a/matita/matitac.ml +++ b/matita/matitac.ml @@ -26,6 +26,7 @@ (* $Id$ *) module G = GrafiteAst +module L = LexiconAst (* from transcript *) @@ -63,16 +64,18 @@ let dump f = let path = Filename.concat rt_base_dir "matita.ma.templ" in let lines = 14 in out_preamble och (path, lines); - let grafite_parser_cb ast = - output_string och (LexiconAstPp.pp_command ast) + let lexicon_engine_cb = function + | L.Include _ as ast -> output_string och (LexiconAstPp.pp_command ast) + | _ -> () in let matita_engine_cb = function - | G.Executable (_, G.Macro (_, G.Inline _)) -> () + | G.Executable (_, G.Macro (_, G.Inline _)) + | G.Executable (_, G.Command (_, G.Include _)) -> () | ast -> output_string och (pp_ast_statement ast) in let matitac_lib_cb = output_string och in -(* GrafiteParser.set_callback grafite_parser_cb; *) + LexiconEngine.set_callback lexicon_engine_cb; MatitaEngine.set_callback matita_engine_cb; MatitacLib.set_callback matitac_lib_cb; at_exit atexit