Function that compiles moonscript into a function.
Last updated 1 year ago
Was this helpful?
CompileMoonString( moonCode, identifier, handleError ) ->
This function requires installation of an additional binary module to compile .
local func = CompileMoonString( [[print "Hello World!"]], "My Compiled MoonScript" ) func() -- Hello World!