create

fun create(resolvedName: ResolvedModuleName, runtime: AvailRuntime, textInterface: TextInterface, pollForAbort: () -> Boolean, reporter: CompilerProgressReporter, afterFail: () -> Unit, problemHandler: ProblemHandler, succeed: (AvailCompiler) -> Unit)

Asynchronously construct a suitable AvailCompiler to parse the specified module name.

Parameters

resolvedName

The resolved name of the module to compile.

textInterface

The text interface for any fiber started by the new compiler.

pollForAbort

A function that indicates whether to abort.

reporter

The CompilerProgressReporter used to report progress.

afterFail

What to do after a failure that the problem handler does not choose to continue.

problemHandler

A problem handler.

succeed

What to do with the resultant compiler in the event of success. This is a continuation that accepts the new compiler.