minor changes
This commit is contained in:
parent
2e7e1c2817
commit
e277f8db56
@ -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)
|
-- self:pushError("You cannot create a method with the same name as a standard method or duplicate method names!",name)
|
||||||
-- end
|
-- end
|
||||||
self.methods[name]=function(...)
|
self.methods[name]=function(...)
|
||||||
self:Invoke(name,{},...)
|
self:Invoke(name,...)
|
||||||
end
|
end
|
||||||
self.mainENV[name]=self.methods[name]
|
self.mainENV[name]=self.methods[name]
|
||||||
table.insert(self.chunks[name],{
|
table.insert(self.chunks[name],{
|
||||||
|
|||||||
@ -9,6 +9,8 @@ ENABLE leaking
|
|||||||
test=2*100
|
test=2*100
|
||||||
"test = $test$"
|
"test = $test$"
|
||||||
c=5
|
c=5
|
||||||
|
test2 = func(2, 3)
|
||||||
|
"Function calls work :D $test2$"
|
||||||
::HERE::
|
::HERE::
|
||||||
a,b="sdf",true
|
a,b="sdf",true
|
||||||
"a,b,c = $a$ $b$ $c$"
|
"a,b,c = $a$ $b$ $c$"
|
||||||
@ -28,5 +30,9 @@ ENABLE leaking
|
|||||||
"Done!"
|
"Done!"
|
||||||
QUIT()
|
QUIT()
|
||||||
}
|
}
|
||||||
|
[func:function(a,b)]{
|
||||||
|
"$a$ $b$"
|
||||||
|
return a+b
|
||||||
|
}
|
||||||
|
|
||||||
-- (count==stop and name=="bob") ? GOTO(end) : GOTO(loop)
|
-- (count==stop and name=="bob") ? GOTO(end) : GOTO(loop)
|
||||||
2
test.lua
2
test.lua
@ -1,6 +1,6 @@
|
|||||||
package.path="?/init.lua;lua/?/init.lua;lua/?.lua;"..package.path
|
package.path="?/init.lua;lua/?/init.lua;lua/?.lua;"..package.path
|
||||||
local bin = require("bin")
|
local bin = require("bin")
|
||||||
local multi = require("multi")
|
--~ local multi = require("multi")
|
||||||
require("parseManager")
|
require("parseManager")
|
||||||
require("bit")
|
require("bit")
|
||||||
parseManager:define({
|
parseManager:define({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user