Companion

object Companion

Functions

Link copied to clipboard
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.

Link copied to clipboard
fun normalizeLineEnds(originalSource: String): Pair<String, String>

Given the exact source code of a module, replace line ends with "\n". Answer a Pair consisting of the new source and the line break string that was encountered (or "\n" if none).

Link copied to clipboard
fun skipWhitespaceAndComments(start: ParserState, continuation: (List<ParserState>) -> Unit)

Skip over whitespace and comment tokens, collecting the latter. Produce a List of ParserStates corresponding to the possible positions after completely parsing runs of whitespaces and comments (i.e., the potential A_Tokens that follow each such ParserState must include at least one token that isn't whitespace or a comment). Invoke the continuation with this list of parser states.