Compilation Context
fun CompilationContext( moduleHeader: ModuleHeader?, module: A_Module, source: A_String, textInterface: TextInterface, pollForAbort: () -> Boolean, progressReporter: CompilerProgressReporter, problemHandler: ProblemHandler)
Content copied to clipboard
Create a CompilationContext for compiling an A_Module.
Parameters
module Header
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.
text Interface
The text interface for any fibers started by this compiler.
poll For Abort
How to quickly check if the client wants to abort compilation.
progress Reporter
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).
problem Handler
The ProblemHandler used for reporting compilation problems.