]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/components/grafite_parser/cicNotation2.ml
1) grafiteWalker removed
[helm.git] / helm / software / components / grafite_parser / cicNotation2.ml
index 015d426e72c82acde6b4509b1a57cb41d097b58b..e02517177578a3663a4f69e40a58d3202ba99420 100644 (file)
 
 (* $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 LexiconSync.init 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 LexiconSync.init 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