convert

abstract fun convert(compilationContext: CompilationContext, lexingState: LexingState, input: A_Phrase, continuation: (A_Phrase) -> Unit, onProblem: (Throwable) -> Unit)

Convert an input AvailObject into an output AvailObject, using the specific conversion rule's implementation.

Parameters

compilationContext

The CompilationContext to use during conversion, if needed.

lexingState

The LexingState after the phrase.

input

The phrase to be converted.

continuation

What to do with the replacement phrase.

onProblem

What to do if there's a problem.