lib: move symbol outside standard
authorJean Privat <jean@pryen.org>
Thu, 26 Apr 2012 18:02:52 +0000 (14:02 -0400)
committerJean Privat <jean@pryen.org>
Thu, 26 Apr 2012 18:02:52 +0000 (14:02 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

lib/standard/standard.nit
lib/symbol.nit [moved from lib/standard/symbol.nit with 97% similarity]
src/metamodel/abstractmetamodel.nit
src/utils.nit

index 5eb3fa3..a43e15b 100644 (file)
@@ -22,7 +22,6 @@ import file
 import exec
 import stream
 import hash
-import symbol
 import string
 import collection
 import math
similarity index 97%
rename from lib/standard/symbol.nit
rename to lib/symbol.nit
index e7fefc2..d3a27ec 100644 (file)
@@ -14,9 +14,6 @@
 # FIXME: Should be deprecated soon
 package symbol
 
-import string
-private import hash
-
 redef class String
        # Get the unique corresponding to the string
        fun to_symbol: Symbol
index 9b0fc57..a35503a 100644 (file)
@@ -20,6 +20,7 @@ package abstractmetamodel
 
 import partial_order
 import location
+import symbol
 
 # The main singleton which knows everything
 abstract class MMContext
index 93f3e35..2787b22 100644 (file)
@@ -18,6 +18,8 @@
 # Various functions for NIT tools
 package utils
 
+import symbol
+
 # Mangle an array of symbol using only alphanums and underscores
 fun cmangle(symbols: Symbol...): String
 do