diff --git a/parseManager/init.lua b/parseManager/init.lua index 01b27dc..d2bebbe 100644 --- a/parseManager/init.lua +++ b/parseManager/init.lua @@ -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],{ diff --git a/parsetest3.txt b/parsetest3.txt index d8e6627..5a10e34 100644 --- a/parsetest3.txt +++ b/parsetest3.txt @@ -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) \ No newline at end of file diff --git a/test.dms b/test.dms new file mode 100644 index 0000000..e69de29 diff --git a/test.lua b/test.lua index 0f8a071..7841c58 100644 --- a/test.lua +++ b/test.lua @@ -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({