Companion

object Companion

Properties

Link copied to clipboard

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

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

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

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.

Functions

Link copied to clipboard

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.