Expand description
Abstract Transition Network structures shared by generated lexers and parsers.
ANTLR serializes grammars into an ATN. Generated Rust code stores that serialized data in static metadata, while the runtime deserializes it into these compact Rust structures for simulation.
Modules§
Structs§
- Atn
- Deserialized ANTLR Abstract Transition Network.
- AtnState
- A node in the ANTLR ATN graph.
- Interval
Set - Ordered set of integer intervals used by set and negated-set transitions.
Enums§
- AtnState
Kind - Serialized ANTLR state kind.
- AtnType
- Distinguishes lexer ATNs from parser ATNs in serialized grammar metadata.
- Lexer
Action - Serialized lexer action attached to an action transition.
- Transition
- Edge between two ATN states.