Parsing Conversion Rule
A ParsingConversionRule describes how to convert the argument at the top of the parsing stack from one phrase to another.
Author
Todd L Smith
Parameters
number
The rule number.
Entries
Link copied to clipboard
Content copied to clipboard
0 - No conversion.
Link copied to clipboard
Content copied to clipboard
1 - Convert a list into a literal phrase that yields an integer representing the size of the original list.
Link copied to clipboard
Content copied to clipboard
2 - Immediately evaluate the phrase on the stack to produce a value. Replace the phrase with a literal phrase holding this value.
Types
Functions
Link copied to clipboard
abstract fun convert( compilationContext: CompilationContext, lexingState: LexingState, input: A_Phrase, continuation: (A_Phrase) -> Unit, onProblem: (Throwable) -> Unit)
Content copied to clipboard
Convert an input AvailObject into an output AvailObject, using the specific conversion rule's implementation.