diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2017-09-12 21:53:45 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2017-09-12 21:53:45 -0700 |
| commit | 395e6c8e5ba5d8f19f7c8abd81b22cb34629f13d (patch) | |
| tree | 49a9db117b0432c00ae4bcad79500fb9f937611a | |
| parent | df552640f39affe5f5f596a002f37a3d61581b91 (diff) | |
Cleaned out some dead code.
| -rw-r--r-- | nomic.lua | 8 | ||||
| -rwxr-xr-x | nomic.moon | 12 |
2 files changed, 2 insertions, 18 deletions
@@ -238,14 +238,6 @@ do if self.debug then print("\nGENERATED LUA CODE:\n" .. tostring(code)) end - local _ = [==[ lua_thunk, err = loadstring(code) - if not lua_thunk - error("Failed to compile generated code:\n#{code}\n\n#{err}") - action = lua_thunk! - if @debug - print("Running...") - return action(self, {}) - ]==] return code end, parse = function(self, str) @@ -148,19 +148,11 @@ class Compiler run: (text)=> if @debug print "RUNNING TEXT:\n#{text}" + -- This will execute each chunk as it goes along code = @compile(text) if @debug print "\nGENERATED LUA CODE:\n#{code}" - [==[ - lua_thunk, err = loadstring(code) - if not lua_thunk - error("Failed to compile generated code:\n#{code}\n\n#{err}") - action = lua_thunk! - if @debug - print("Running...") - return action(self, {}) - ]==] - code + return code parse: (str)=> if @debug |
