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
compile::
bin/moonc moon/ moonscript/
lua5.1 bin/moonc moon/ moonscript/
compile_global:

View File

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

View File

@ -1,9 +1,6 @@
local lfs = require("lfs")
local split
do
local _obj_0 = require("moonscript.util")
split = _obj_0.split
end
split = require("moonscript.util").split
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)
if dirsep == "\\" then
@ -93,10 +90,7 @@ compile_file_text = function(text, fname, opts)
end
if opts.show_posmap then
local debug_posmap
do
local _obj_0 = require("moonscript.util")
debug_posmap = _obj_0.debug_posmap
end
debug_posmap = require("moonscript.util").debug_posmap
print("Pos", "Lua", ">>", "Moon")
print(debug_posmap(posmap_or_err, text, code))
return true

View File

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

View File

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

View File

@ -1,15 +1,9 @@
local util = require("moonscript.util")
local data = require("moonscript.data")
local ntype
do
local _obj_0 = require("moonscript.types")
ntype = _obj_0.ntype
end
ntype = require("moonscript.types").ntype
local user_error
do
local _obj_0 = require("moonscript.errors")
user_error = _obj_0.user_error
end
user_error = require("moonscript.errors").user_error
local concat, insert
do
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
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
do
local _obj_0 = table
insert = _obj_0.insert
end
insert = table.insert
local NameProxy, LocalName
do
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
end
local NameProxy
do
local _obj_0 = require("moonscript.transform.names")
NameProxy = _obj_0.NameProxy
end
NameProxy = require("moonscript.transform.names").NameProxy
local insert
do
local _obj_0 = table
insert = _obj_0.insert
end
insert = table.insert
local unpack
do
local _obj_0 = require("moonscript.util")
unpack = _obj_0.unpack
end
unpack = require("moonscript.util").unpack
local user_error
do
local _obj_0 = require("moonscript.errors")
user_error = _obj_0.user_error
end
user_error = require("moonscript.errors").user_error
local join
join = function(...)
do

View File

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

View File

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

View File

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