im trying to convert the documentation for the LuaApi int a loadable Mockup.
Not much to look at at the moment, due to Regex Fail.
Where did i go wrong?
ConverterRegex:
Code: Select all
(?P<Spring>Spring\.)(?P<FunctionName>[a-zA-Z0-9]+)([^\(]+\()(?<ArgPair>(?<ArgType>[a-zA-Z0-9]+)\W+(?<ArgName>[a-zA-Z0-9]+)([^a-zA-Z]+))+([^>]+>)([^\S]+)(?P<ReturnType>[a-zA-Z]+)
Code: Select all
$Spring$FunctionName = function $FunctionName($Arguments)assert("$ArgumentType" == type($ArgName); return Mock$ReturnType end
https://github.com/PicassoCT/SpringLuaApi