changeset 319:f6db49c294a7

rename Basic to Luan git-svn-id: https://luan-java.googlecode.com/svn/trunk@320 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Thu, 05 Feb 2015 21:55:49 +0000
parents 4fe6c9fed486
children fed1893821bf
files core/src/luan/LuanState.java core/src/luan/modules/Basic.luan core/src/luan/modules/Io.luan core/src/luan/modules/Luan.luan
diffstat 4 files changed, 69 insertions(+), 69 deletions(-) [+]
line wrap: on
line diff
--- a/core/src/luan/LuanState.java	Thu Feb 05 03:28:23 2015 +0000
+++ b/core/src/luan/LuanState.java	Thu Feb 05 21:55:49 2015 +0000
@@ -54,7 +54,7 @@
 	public static LuanState newStandard() {
 		try {
 			LuanState luan = LuanCompiler.newLuanState();
-			PackageLuan.require(luan,"luan:Basic");
+			PackageLuan.require(luan,"luan:Luan");
 			PackageLuan.require(luan,"luan:Io");
 //			BasicLuan.do_file(luan,"classpath:luan/init.luan");
 			return luan;
--- a/core/src/luan/modules/Basic.luan	Thu Feb 05 03:28:23 2015 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,64 +0,0 @@
-java()
-import "java:luan.modules.BasicLuan"
-
-assert = BasicLuan.assert_
-assert_boolean = BasicLuan.assert_boolean
-assert_nil = BasicLuan.assert_nil
-assert_number = BasicLuan.assert_number
-assert_string = BasicLuan.assert_string
-assert_table = BasicLuan.assert_table
-assert_integer = BasicLuan.assert_integer
-assert_long = BasicLuan.assert_long
-do_file = BasicLuan.do_file
-error = BasicLuan.error
-get_metatable = BasicLuan.get_metatable
-ipairs = BasicLuan.ipairs
-load = BasicLuan.load
-load_file = BasicLuan.load_file
-pairs = BasicLuan.pairs
-range = BasicLuan.range
-raw_equal = BasicLuan.raw_equal
-raw_get = BasicLuan.raw_get
-raw_len = BasicLuan.raw_len
-raw_set = BasicLuan.raw_set
-repr = BasicLuan.repr
-set_metatable = BasicLuan.set_metatable
-to_boolean = BasicLuan.to_boolean
-to_number = BasicLuan.to_number
-to_string = BasicLuan.to_string
-type = BasicLuan.type
-values = BasicLuan.values
-
-
-import "luan:Package"
-local Basic = _ENV
-
-Package.global(Package,"require")
-Package.global(Basic,"assert")
-Package.global(Basic,"assert_boolean")
-Package.global(Basic,"assert_nil")
-Package.global(Basic,"assert_number")
-Package.global(Basic,"assert_string")
-Package.global(Basic,"assert_table")
-Package.global(Basic,"assert_integer")
-Package.global(Basic,"assert_long")
-Package.global(Basic,"do_file")
-Package.global(Basic,"error")
-Package.global(Basic,"get_metatable")
-Package.global(Basic,"ipairs")
-Package.global(Basic,"load")
-Package.global(Basic,"load_file")
-Package.global(Basic,"pairs")
-Package.global(Basic,"range")
-Package.global(Basic,"raw_equal")
-Package.global(Basic,"raw_get")
-Package.global(Basic,"raw_len")
-Package.global(Basic,"raw_set")
-Package.global(Basic,"repr")
-Package.global(Basic,"set_metatable")
-Package.global(Basic,"to_boolean")
-Package.global(Basic,"to_number")
-Package.global(Basic,"to_string")
-Package.global(Basic,"type")
-
-do_file "classpath:luan/version.luan"
--- a/core/src/luan/modules/Io.luan	Thu Feb 05 03:28:23 2015 +0000
+++ b/core/src/luan/modules/Io.luan	Thu Feb 05 21:55:49 2015 +0000
@@ -12,12 +12,12 @@
 
 
 import "luan:Package"
-import "luan:Basic"
+import "luan:Luan"
 import "luan:Table"
 
 function print_to(out,...)
 	local list = {}
-	for _,v in Basic.values(...) do
+	for _,v in Luan.values(...) do
 		list[#list+1] = to_string(v)
 		list[#list+1] = '\t'
 	end
@@ -29,7 +29,7 @@
 	end
 end
 
-function Basic.print(...)
+function Luan.print(...)
 	print_to(stdout,...)
 end
-Package.global(Basic,"print")
+Package.global(Luan,"print")
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/core/src/luan/modules/Luan.luan	Thu Feb 05 21:55:49 2015 +0000
@@ -0,0 +1,64 @@
+java()
+import "java:luan.modules.BasicLuan"
+
+assert = BasicLuan.assert_
+assert_boolean = BasicLuan.assert_boolean
+assert_nil = BasicLuan.assert_nil
+assert_number = BasicLuan.assert_number
+assert_string = BasicLuan.assert_string
+assert_table = BasicLuan.assert_table
+assert_integer = BasicLuan.assert_integer
+assert_long = BasicLuan.assert_long
+do_file = BasicLuan.do_file
+error = BasicLuan.error
+get_metatable = BasicLuan.get_metatable
+ipairs = BasicLuan.ipairs
+load = BasicLuan.load
+load_file = BasicLuan.load_file
+pairs = BasicLuan.pairs
+range = BasicLuan.range
+raw_equal = BasicLuan.raw_equal
+raw_get = BasicLuan.raw_get
+raw_len = BasicLuan.raw_len
+raw_set = BasicLuan.raw_set
+repr = BasicLuan.repr
+set_metatable = BasicLuan.set_metatable
+to_boolean = BasicLuan.to_boolean
+to_number = BasicLuan.to_number
+to_string = BasicLuan.to_string
+type = BasicLuan.type
+values = BasicLuan.values
+
+
+import "luan:Package"
+local Basic = _ENV
+
+Package.global(Package,"require")
+Package.global(Basic,"assert")
+Package.global(Basic,"assert_boolean")
+Package.global(Basic,"assert_nil")
+Package.global(Basic,"assert_number")
+Package.global(Basic,"assert_string")
+Package.global(Basic,"assert_table")
+Package.global(Basic,"assert_integer")
+Package.global(Basic,"assert_long")
+Package.global(Basic,"do_file")
+Package.global(Basic,"error")
+Package.global(Basic,"get_metatable")
+Package.global(Basic,"ipairs")
+Package.global(Basic,"load")
+Package.global(Basic,"load_file")
+Package.global(Basic,"pairs")
+Package.global(Basic,"range")
+Package.global(Basic,"raw_equal")
+Package.global(Basic,"raw_get")
+Package.global(Basic,"raw_len")
+Package.global(Basic,"raw_set")
+Package.global(Basic,"repr")
+Package.global(Basic,"set_metatable")
+Package.global(Basic,"to_boolean")
+Package.global(Basic,"to_number")
+Package.global(Basic,"to_string")
+Package.global(Basic,"type")
+
+do_file "classpath:luan/version.luan"