staticinitParser():Parser
new(path:String)
code:String
@:value(null)decls:Array<ModuleDecl> = null
expr:Expr
folderlessPath:String
interp:Interp
parser:Parser
fileName:String
Script name (with extension)
@:value(null)path:String = null
Path to the script.
call(func:String, ?parameters:Array<Dynamic>):Dynamic
Calls the function func defined in the script.
func
Parameters:
Name of the function
parameters
(Optional) Parameters of the function.
Returns:
Result (if void, then null)
error(text:String, ?additionalInfo:Dynamic):Void
Shows an error from this script.
text
Text of the error (ex: Null Object Reference).
additionalInfo
Additional information you could provide.
load():Void
Loads the script