local Module = require(script.Parent)
local Language = Module:AddLanguage("Complex")
Language:ChangeHolders("{", "}")
Language:AddNewFunction("PrintLine ", function(...)
return print(...)
end)
Language:AddNewFunction("WarnLine ", function(...)
return warn(...)
end)
Language:AddNewFunction("ErrorLine ", function(Output, Level)
if typeof(Level) ~= "number" then
return error("error level has to be a number")
end
return error(Output, Level)
end)
Language:AddNewFunction("CheckType ", function(Value)
return typeof(Value)
end)
Language:RunCode([[
PrintLine {"test", CheckType {"test"}}
WarnLine {"test", CheckType {"test"}}
ErrorLine {"test", 0}
]])
I am working on a module where you can create your own language
so far you can only make new functions and you can put functions as arguments as well, this module only excepts numbers, strings, or the functions as arguments right now
anyways, I wonder what to add after I fix the current bugs
thanks for reading