Package-level declarations
Types
An implementation of StateCallback that composes two other state callbacks. Consider that we were only dealing with regular functions, this would give:
A branch for the ExpectedEither expectation.
General class for an expectation.
An expectation that takes the result of some branches.
An expectation that always matches and always emits the provided value.
An expectation that only matches if the current position is the end of the input.
A "look-ahead" branch. Similar to lookaheads in regular expressions, ExpectedLookahead will verify expectations, but not advanced the "cursor" to the next token. You can think of it as check against "what will come next", while staying where we are.
An expectation that expects another node to be present at this point.
An optional branch. This expectation is always met (always returns a success), even when we have run out of tokens.
A repeated branch that runs 0+ iterations of some expectations and collects the results into a list. Said list can then be stored in the model results.
An expectation that expects a token to be present at this point.
When an expectation is also of type HandlesTokenDrought, it means that the expectation should be called even when running out of tokens.
A key used when storing state within Niwen parsers.
An escape hatch for NodeParameterKey's harsh typing restrictions.
Receiver interface for the content of a repeated { }
block.
A callback for manipulating and invoking side effects with state information.
An implementation of StateCallback that stores values in the key specified in storeValueIn.
An implementation of StateCallback that transforms incoming state using the provided transformer.
Functions
Create a NodeParameterKey for the provided property.
Create a store map and evaluate this state callback. The map is returned.
Create a NodeParameterKey from the provided name and types.
Create a store map (using createStoreMap) and call the provided handler, returning an ExpectationResult.