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

0 - No conversion.

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

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

Types

Link copied to clipboard
object Companion

Properties

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

The rule number.

Link copied to clipboard

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.

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.