The Chain type represents a composable chain of parser rules, allowing for step-by-step construction of parsing logic with flexibility for handling results.
A final parser that combines all the rules in the chain and produces a result of type T.
Adds a new parsing rule to the chain. The result of the rule (R) is appended to the tuple T, maintaining a record of all accumulated results.
Adds a parsing rule to the chain but ignores its result. The tuple T remains unchanged.
The Chain type represents a composable chain of parser rules, allowing for step-by-step construction of parsing logic with flexibility for handling results.