Module bevy_generative_grammars::generator
source · Expand description
Generator Traits
Enums
- This sets the direction of processing for the grammar
- This enum helps handling complex meta-commands within a stream.
- This defines a portion of a token stream that may be replaced using a rule, or might already be ready
Traits
- This trait represents a stateless generator. You pass the grammar & rng in, and it can provide the resulting stream.
- This trait defines an interface for a grammar
- This trait defines a random number generator capable of choosing a single item from a list of len usize. It is used for selecting a rule for using when multiple rules are available.
- This trait represents a stateful generator. Here the generator owns the grammar, allowing it to make adjustments as needed.