]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/gTopLevel/termEditor.ml
moved environmentP3 in cic_textual_parser2 and reshaped interface
[helm.git] / helm / gTopLevel / termEditor.ml
index ca5cca601e615c6daf96b5bdcaff3f525852e1d3..668bf1502a8e0065e98193629ad95b9d4a2d97f0 100644 (file)
@@ -48,7 +48,7 @@ class type term_editor =
    method reset : unit
    (* The input of set_term is unquoted *)
    method set_term : string -> unit
-   method environment : DisambiguatingParser.Environment.t ref
+   method environment : DisambiguatingParser.EnvironmentP3.t ref
  end
 
 module Make(C:Disambiguate_types.Callbacks) =
@@ -61,7 +61,9 @@ module Make(C:Disambiguate_types.Callbacks) =
    =
     let environment =
      match share_environment_with with
-        None -> ref DisambiguatingParser.Environment.empty
+        None -> ref
+          (DisambiguatingParser.EnvironmentP3.of_string
+            DisambiguatingParser.EnvironmentP3.empty)
       | Some obj -> obj#environment
     in
     let input = GText.view ~editable:true ?width ?height ?packing () in