aboutsummaryrefslogtreecommitdiff
path: root/nomsu.lua
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2017-09-12 23:12:45 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2017-09-12 23:12:45 -0700
commit522a0397677c78a7d73b7095cead198fa162b927 (patch)
tree62184a369d77d7ee332fdaec95c5478dd7f67a2d /nomsu.lua
parent8221616cd620de69cc3ede2efed4bb60482a723f (diff)
Fixed some bugs with generated code.
Diffstat (limited to 'nomsu.lua')
-rw-r--r--nomsu.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/nomsu.lua b/nomsu.lua
index 200b45a..bc7ec80 100644
--- a/nomsu.lua
+++ b/nomsu.lua
@@ -805,7 +805,7 @@ do
end
Compiler = _class_0
end
-if arg[1] then
+if arg and arg[1] then
local c = Compiler()
local input = io.open(arg[1]):read("*a")
local _print = print
@@ -831,7 +831,7 @@ if arg[1] then
end
local utils = require('utils')
local Compiler = require('nomsu')
- local c = Compiler(require('core'))
+ local c = Compiler()
load()(c, {})
]])
end