This commit is contained in:
leaf corcoran 2014-09-02 20:32:52 -07:00
parent da6c76b7e4
commit 163748b8c9
11 changed files with 20 additions and 77 deletions

View File

@ -9,7 +9,7 @@ global:
sudo luarocks make moonscript-dev-1.rockspec sudo luarocks make moonscript-dev-1.rockspec
compile:: compile::
bin/moonc moon/ moonscript/ lua5.1 bin/moonc moon/ moonscript/
compile_global: compile_global:

View File

@ -1,18 +1,9 @@
local insert local insert
do insert = table.insert
local _obj_0 = table
insert = _obj_0.insert
end
local Set local Set
do Set = require("moonscript.data").Set
local _obj_0 = require("moonscript.data")
Set = _obj_0.Set
end
local Block local Block
do Block = require("moonscript.compile").Block
local _obj_0 = require("moonscript.compile")
Block = _obj_0.Block
end
local default_whitelist = Set({ local default_whitelist = Set({
'_G', '_G',
'_VERSION', '_VERSION',

View File

@ -1,9 +1,6 @@
local lfs = require("lfs") local lfs = require("lfs")
local split local split
do split = require("moonscript.util").split
local _obj_0 = require("moonscript.util")
split = _obj_0.split
end
local dirsep, dirsep_chars, mkdir, normalize_dir, parse_dir, parse_file, convert_path, format_time, gettime, compile_file_text, write_file, compile_and_write, is_abs_path, path_to_target local dirsep, dirsep_chars, mkdir, normalize_dir, parse_dir, parse_file, convert_path, format_time, gettime, compile_file_text, write_file, compile_and_write, is_abs_path, path_to_target
dirsep = package.config:sub(1, 1) dirsep = package.config:sub(1, 1)
if dirsep == "\\" then if dirsep == "\\" then
@ -93,10 +90,7 @@ compile_file_text = function(text, fname, opts)
end end
if opts.show_posmap then if opts.show_posmap then
local debug_posmap local debug_posmap
do debug_posmap = require("moonscript.util").debug_posmap
local _obj_0 = require("moonscript.util")
debug_posmap = _obj_0.debug_posmap
end
print("Pos", "Lua", ">>", "Moon") print("Pos", "Lua", ">>", "Moon")
print(debug_posmap(posmap_or_err, text, code)) print(debug_posmap(posmap_or_err, text, code))
return true return true

View File

@ -7,10 +7,7 @@ do
NameProxy, LocalName = _obj_0.NameProxy, _obj_0.LocalName NameProxy, LocalName = _obj_0.NameProxy, _obj_0.LocalName
end end
local Set local Set
do Set = require("moonscript.data").Set
local _obj_0 = require("moonscript.data")
Set = _obj_0.Set
end
local ntype, has_value local ntype, has_value
do do
local _obj_0 = require("moonscript.types") local _obj_0 = require("moonscript.types")

View File

@ -2,10 +2,7 @@ local util = require("moonscript.util")
local reversed, unpack local reversed, unpack
reversed, unpack = util.reversed, util.unpack reversed, unpack = util.reversed, util.unpack
local ntype local ntype
do ntype = require("moonscript.types").ntype
local _obj_0 = require("moonscript.types")
ntype = _obj_0.ntype
end
local concat, insert local concat, insert
do do
local _obj_0 = table local _obj_0 = table

View File

@ -1,15 +1,9 @@
local util = require("moonscript.util") local util = require("moonscript.util")
local data = require("moonscript.data") local data = require("moonscript.data")
local ntype local ntype
do ntype = require("moonscript.types").ntype
local _obj_0 = require("moonscript.types")
ntype = _obj_0.ntype
end
local user_error local user_error
do user_error = require("moonscript.errors").user_error
local _obj_0 = require("moonscript.errors")
user_error = _obj_0.user_error
end
local concat, insert local concat, insert
do do
local _obj_0 = table local _obj_0 = table

View File

@ -6,10 +6,7 @@ reversed, unpack = util.reversed, util.unpack
local ntype, mtype, build, smart_node, is_slice, value_is_singular local ntype, mtype, build, smart_node, is_slice, value_is_singular
ntype, mtype, build, smart_node, is_slice, value_is_singular = types.ntype, types.mtype, types.build, types.smart_node, types.is_slice, types.value_is_singular ntype, mtype, build, smart_node, is_slice, value_is_singular = types.ntype, types.mtype, types.build, types.smart_node, types.is_slice, types.value_is_singular
local insert local insert
do insert = table.insert
local _obj_0 = table
insert = _obj_0.insert
end
local NameProxy, LocalName local NameProxy, LocalName
do do
local _obj_0 = require("moonscript.transform.names") local _obj_0 = require("moonscript.transform.names")

View File

@ -4,25 +4,13 @@ do
ntype, mtype, build = _obj_0.ntype, _obj_0.mtype, _obj_0.build ntype, mtype, build = _obj_0.ntype, _obj_0.mtype, _obj_0.build
end end
local NameProxy local NameProxy
do NameProxy = require("moonscript.transform.names").NameProxy
local _obj_0 = require("moonscript.transform.names")
NameProxy = _obj_0.NameProxy
end
local insert local insert
do insert = table.insert
local _obj_0 = table
insert = _obj_0.insert
end
local unpack local unpack
do unpack = require("moonscript.util").unpack
local _obj_0 = require("moonscript.util")
unpack = _obj_0.unpack
end
local user_error local user_error
do user_error = require("moonscript.errors").user_error
local _obj_0 = require("moonscript.errors")
user_error = _obj_0.user_error
end
local join local join
join = function(...) join = function(...)
do do

View File

@ -1,13 +1,7 @@
local build local build
do build = require("moonscript.types").build
local _obj_0 = require("moonscript.types")
build = _obj_0.build
end
local unpack local unpack
do unpack = require("moonscript.util").unpack
local _obj_0 = require("moonscript.util")
unpack = _obj_0.unpack
end
local LocalName local LocalName
do do
local _base_0 = { local _base_0 = {

View File

@ -1,14 +1,8 @@
local util = require("moonscript.util") local util = require("moonscript.util")
local Set local Set
do Set = require("moonscript.data").Set
local _obj_0 = require("moonscript.data")
Set = _obj_0.Set
end
local insert local insert
do insert = table.insert
local _obj_0 = table
insert = _obj_0.insert
end
local unpack local unpack
unpack = util.unpack unpack = util.unpack
local manual_return = Set({ local manual_return = Set({

View File

@ -1,8 +1,5 @@
local concat local concat
do concat = table.concat
local _obj_0 = table
concat = _obj_0.concat
end
local unpack = unpack or table.unpack local unpack = unpack or table.unpack
local type = type local type = type
local moon = { local moon = {