minor changes

This commit is contained in:
Ryan Ward 2019-01-04 18:52:55 -05:00
parent 2e7e1c2817
commit e277f8db56
4 changed files with 8 additions and 2 deletions

View File

@ -652,7 +652,7 @@ function parseManager:compile(name,ctype,data)
-- self:pushError("You cannot create a method with the same name as a standard method or duplicate method names!",name)
-- end
self.methods[name]=function(...)
self:Invoke(name,{},...)
self:Invoke(name,...)
end
self.mainENV[name]=self.methods[name]
table.insert(self.chunks[name],{

View File

@ -9,6 +9,8 @@ ENABLE leaking
test=2*100
"test = $test$"
c=5
test2 = func(2, 3)
"Function calls work :D $test2$"
::HERE::
a,b="sdf",true
"a,b,c = $a$ $b$ $c$"
@ -28,5 +30,9 @@ ENABLE leaking
"Done!"
QUIT()
}
[func:function(a,b)]{
"$a$ $b$"
return a+b
}
-- (count==stop and name=="bob") ? GOTO(end) : GOTO(loop)

0
test.dms Normal file
View File

View File

@ -1,6 +1,6 @@
package.path="?/init.lua;lua/?/init.lua;lua/?.lua;"..package.path
local bin = require("bin")
local multi = require("multi")
--~ local multi = require("multi")
require("parseManager")
require("bit")
parseManager:define({