parseManager/test.lua
Ryan Ward 05cc166925 The function rework is done!
Finally, this took way too long to get working. Major change to how one interacts with the interperter. No need to implicetly catch each case, defaults are set and can be overridden if needed.
2019-06-25 23:13:19 -04:00

25 lines
626 B
Lua

package.path="?/init.lua;lua/?/init.lua;lua/?.lua;"..package.path
package.cpath="?.dll;"..package.cpath
local bin = require("bin")
local multi = require("multi")
require("parseManager")
require("multi")
test=parseManager:load("test.dms")--parseManager:compileToFile("test.dms","test.dmsc")--
test:define{
external = function(self)
return multi
end,
tester = function()
print("!")
end
}
parseManager.print(test:dump())
--~ test = parseManager:loadCompiled("test.dmsc")
--~ print(test.methods.DoMe(2))
--~ print(test.methods.DoMe(1,2))
local active = true
while active do
active = test:think()
end
--~ multi:mainloop()