#load "pa_extend.cmo";; let include_file file = let ic = open_in file in let (implem, _) = !Pcaml.parse_implem (Stream.of_channel ic) in close_in ic ; (implem, true) EXTEND GLOBAL: Pcaml.implem ; Pcaml.implem: [ [ "INCLUDE" ; file = STRING ; ";;" -> include_file file ] ]; END (* Local Variables: *) (* compile-command: "ocamlc -pp camlp4o -I +camlp4 -c pa_inc.ml" *) (* End: *)