Companion

object Companion

Functions

Link copied to clipboard
fun A_Lexer.lexerApplicability(codePoint: Int): Boolean?

If the filter function cas already run for this single-byte codePoint in the past, answer the boolean value that it produced. Otherwise answer null.

Link copied to clipboard
fun A_Lexer.setLexerApplicability(codePoint: Int, applicability: Boolean)

Record the fact that the filter ran for this single-byte codePoint, and produced the provided applicability boolean.

Properties

Link copied to clipboard
val A_Lexer.definitionModule: A_Module

Answer the module in which this lexer was defined. This is used for filtering – a module can only use this lexer if the module's ancestry includes the lexer's definitionModule.

Link copied to clipboard
val A_Lexer.lexerBodyFunction: A_Function

Answer the function to run (as the base call of a fiber) to generate some tokens from the source string and position. The function should produce a tuple of potential next tokens, which may or may not have additional tokens explicitly chained onto them via A_Token.setNextLexingStateFromPrior.

Link copied to clipboard
val A_Lexer.lexerFilterFunction: A_Function

Answer the function to run (as the base call of a fiber), with the character at the current lexer position, to determine if the body function should be attempted.

Link copied to clipboard
val A_Lexer.lexerMethod: A_Method

Answer the A_Method in which this lexer is defined. Even though the internals of the method aren't needed by the lexer, it's convenient to associated the lexer with a method for controlling imports and renames.