LexingStage
Pipeline stage responsible for lexical analysis (tokenization) of the input text.
This stage produces a lazy sequence of tokens as output from the provided source text. It uses the lexer factory from the context's flavor to create a block lexer that processes the source text and breaks it down into tokens.
The tokens produced by this stage are used by the ParsingStage to build an abstract syntax tree.
Parameters
source
the raw input text to be tokenized
Properties
Functions
Link copied to clipboard
Utility function to execute a pipeline stage that takes Unit as input.
Link copied to clipboard
Invokes the hook function for this stage, if one is defined.
Link copied to clipboard
Chains two pipeline stages together to form a new pipeline stage.
Link copied to clipboard
infix fun <A, B> PipelineStage<A, B>.thenOptionally(next: PipelineStage<B, B>?): PipelineStage<A, B>
Conditionally chains this pipeline stage with next if it is not null.