parseModule

fun parseModule(onSuccess: (A_Module) -> Unit, afterFail: () -> Unit)

Parse a module from the source and install it into the runtime. This method generally returns long before the module has been parsed, but either the onSuccess or afterFail continuation is invoked when module parsing has completed or failed.

Parameters

onSuccess

What to do when the entire module has been parsed successfully.

afterFail

What to do after compilation fails.