Avail Compiler
The compiler for Avail code.
Author
Mark van Gulik
Todd L Smith
Parameters
The module header of the module to compile. May be null for synthetic modules (for entry points), or when parsing the header.
The current module.`
The source A_String.
The text interface for any fibers started by this compiler.
How to quickly check if the client wants to abort compilation.
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).
The ProblemHandler used for reporting compilation problems.
Constructors
Construct a new AvailCompiler.
Properties
The CompilationContext for this compiler. It tracks parsing and lexing tasks, and handles serialization to a repository if necessary.
Functions
Parse the header of the module from the token stream. If successful, invoke onSuccess with the ParserState just after the header, otherwise invoke onFail without reporting the problem.