compile

abstract fun compile(compilerEnv: CompilerEnvirons, tree: ScriptNode, rawSource: String, returnFunction: Boolean): Any

Compiles tree into a runnable form.

The return value is opaque: pass it to createFunctionObject when returnFunction was true, and to createScriptObject otherwise.