X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Fgrafite_parser%2FcicNotation2.ml;h=e02517177578a3663a4f69e40a58d3202ba99420;hb=df1201e37d6f2631dc31ffc87b979a6c81180a3a;hp=b3c8a59cc81231a44c49ccf102e809fe4bf7f1a4;hpb=004fbb54bc0a2b971f08bcf830ac8cbdafcdbe57;p=helm.git diff --git a/helm/software/components/grafite_parser/cicNotation2.ml b/helm/software/components/grafite_parser/cicNotation2.ml index b3c8a59cc..e02517177 100644 --- a/helm/software/components/grafite_parser/cicNotation2.ml +++ b/helm/software/components/grafite_parser/cicNotation2.ml @@ -25,25 +25,13 @@ (* $Id$ *) -let load_notation ~include_paths fname = +let load_notation status ~include_paths fname = let ic = open_in fname in let lexbuf = Ulexing.from_utf8_channel ic in - let status = ref LexiconEngine.initial_status in + let status = ref status in try while true do status := fst (GrafiteParser.parse_statement ~include_paths lexbuf !status) done; assert false with End_of_file -> close_in ic; !status - -let parse_environment ~include_paths str = - let lexbuf = Ulexing.from_utf8_string str in - let status = ref LexiconEngine.initial_status in - try - while true do - status := fst (GrafiteParser.parse_statement ~include_paths lexbuf !status) - done; - assert false - with End_of_file -> - !status.LexiconEngine.aliases, - !status.LexiconEngine.multi_aliases