From 6d961ac24305f26e896b602bdabe0e9c3c7cbf05 Mon Sep 17 00:00:00 2001 From: letouzey Date: Tue, 29 May 2012 11:09:15 +0000 Subject: global_reference migrated from Libnames to new Globnames, less deps in grammar.cma git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@15384 85f007b7-540e-0410-9357-904b9bb8a0f7 --- plugins/syntax/ascii_syntax.ml | 3 ++- plugins/syntax/numbers_syntax.ml | 1 + plugins/syntax/r_syntax.ml | 3 ++- plugins/syntax/string_syntax.ml | 1 + plugins/syntax/z_syntax.ml | 3 ++- 5 files changed, 8 insertions(+), 3 deletions(-) (limited to 'plugins/syntax') diff --git a/plugins/syntax/ascii_syntax.ml b/plugins/syntax/ascii_syntax.ml index cf51af134..b2e2e5b19 100644 --- a/plugins/syntax/ascii_syntax.ml +++ b/plugins/syntax/ascii_syntax.ml @@ -14,13 +14,14 @@ open Pcoq open Glob_term open Topconstr open Libnames +open Globnames open Coqlib open Bigint exception Non_closed_ascii let make_dir l = make_dirpath (List.map id_of_string (List.rev l)) -let make_kn dir id = Libnames.encode_mind (make_dir dir) (id_of_string id) +let make_kn dir id = Globnames.encode_mind (make_dir dir) (id_of_string id) let make_path dir id = Libnames.make_path (make_dir dir) (id_of_string id) let ascii_module = ["Coq";"Strings";"Ascii"] diff --git a/plugins/syntax/numbers_syntax.ml b/plugins/syntax/numbers_syntax.ml index 984bae418..b67cbb934 100644 --- a/plugins/syntax/numbers_syntax.ml +++ b/plugins/syntax/numbers_syntax.ml @@ -10,6 +10,7 @@ open Bigint open Libnames +open Globnames open Glob_term (*** Constants for locating int31 / bigN / bigZ / bigQ constructors ***) diff --git a/plugins/syntax/r_syntax.ml b/plugins/syntax/r_syntax.ml index b3195f281..f8161c52f 100644 --- a/plugins/syntax/r_syntax.ml +++ b/plugins/syntax/r_syntax.ml @@ -13,6 +13,7 @@ open Names open Pcoq open Topconstr open Libnames +open Globnames exception Non_closed_number @@ -31,7 +32,7 @@ let make_path dir id = Libnames.make_path dir (id_of_string id) let r_path = make_path rdefinitions "R" (* TODO: temporary hack *) -let make_path dir id = Libnames.encode_con dir (id_of_string id) +let make_path dir id = Globnames.encode_con dir (id_of_string id) let r_kn = make_path rdefinitions "R" let glob_R = ConstRef r_kn diff --git a/plugins/syntax/string_syntax.ml b/plugins/syntax/string_syntax.ml index 640806d87..ac17492d2 100644 --- a/plugins/syntax/string_syntax.ml +++ b/plugins/syntax/string_syntax.ml @@ -12,6 +12,7 @@ open Util open Names open Pcoq open Libnames +open Globnames open Topconstr open Ascii_syntax open Glob_term diff --git a/plugins/syntax/z_syntax.ml b/plugins/syntax/z_syntax.ml index 450d57969..a69ec9ed1 100644 --- a/plugins/syntax/z_syntax.ml +++ b/plugins/syntax/z_syntax.ml @@ -22,6 +22,7 @@ exception Non_closed_number (**********************************************************************) open Libnames +open Globnames open Glob_term let binnums = ["Coq";"Numbers";"BinNums"] @@ -32,7 +33,7 @@ let make_path dir id = Libnames.make_path (make_dir dir) (id_of_string id) let positive_path = make_path binnums "positive" (* TODO: temporary hack *) -let make_kn dir id = Libnames.encode_mind dir id +let make_kn dir id = Globnames.encode_mind dir id let positive_kn = make_kn (make_dir binnums) (id_of_string "positive") let glob_positive = IndRef (positive_kn,0) -- cgit v1.2.3