AvailCompiler

fun AvailCompiler(    moduleHeader: ModuleHeader?,     module: A_Module,     source: A_String,     textInterface: TextInterface,     pollForAbort: () -> Boolean,     progressReporter: CompilerProgressReporter,     problemHandler: ProblemHandler)

Construct a new AvailCompiler.

Parameters

moduleHeader

The module header of the module to compile. May be null for synthetic modules (for entry points), or when parsing the header.

module

The current module.`

source

The source A_String.

textInterface

The text interface for any fibers started by this compiler.

pollForAbort

How to quickly check if the client wants to abort compilation.

progressReporter

How to report progress to the client who instigated compilation. This continuation that accepts the name of the module undergoing compilation, the line number on which the last complete statement concluded, the position of the ongoing parse (in bytes), and the size of the module (in bytes).

problemHandler

The ProblemHandler used for reporting compilation problems.