Qualifier for selecting a LRulesSet, where the neighbors of the token are known
as constants, with some direct adjacency from the character being matched. This enables “Context-sensitive
grammars”; where the context in question
simply matches the exact characters neighboring the selected character.
A set of rules to apply when a token is matched, with a weight (u8) - the higher the weight compared
to the rest of the options, the more likely it will be selected (i.e., this set of production rules
satisfies a stochastic grammar).
Qualifier for selecting a LRulesSet, where neighbors of the token must pass a Boolean predicate.
This enables “Context-sensitive
grammars”; where the context in question
is more flexible than the ExactNeighbors version, and simply has to pass a predicate.