parseManager/test.lua
Ryan Ward ea72da76a6 function Rework in progress
Almost done, I have to rewrite the math parser though
Found a major issue with it which causes some things not to work
\
But when its done youll be able to do implicit multiplication and it should be compiled more efficently than before.
2019-06-16 22:15:36 -04:00

24 lines
607 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()
return multi
end
}
parseManager.print(test:dump())
--~ test = parseManager:loadCompiled("test.dmsc")
--~ print(test.methods.DoMe(1))
--~ print(test.methods.DoMe(1,2))
test.__TEXT = function(text)
print(text)
end
local active = true
while active do
active = test:think()
end