Delegate Transformer<TChar, T>
Represents a semantic action that gets executed when a terminal or equivalent is encountered in input and produces a value.
public delegate T Transformer<TChar, out T>(ref ParserState state, ReadOnlySpan<TChar> input)
Parameters
state
ParserStateA reference to the parser's state. This is a "controlled-mutability" reference. It can be modified through its members, but cannot be reassigned to a different ParserState.
input
ReadOnlySpan<TChar>The characters of the input that matched the terminal.
Returns
- T
- Represents a semantic action that gets executed when a terminal or equivalent is encountered in input and produces a value.
Type Parameters
TChar
The type of characters of the input text.
T
The type of the produced value.