ParsingConversionRule

enum ParsingConversionRule : Enum<ParsingConversionRule>

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

2 - Immediately evaluate the phrase on the stack to produce a value. Replace the phrase with a literal phrase holding this value.

Link 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

0 - No conversion.

Types

Link copied to clipboard
object Companion

Functions

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

Properties

Link copied to clipboard
val name: String
Link copied to clipboard
val number: Int

The rule number.

Link copied to clipboard
val ordinal: Int