Skip to main content

Module atn

Module atn 

Source
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§

lexer
serialized

Structs§

Atn
Deserialized ANTLR Abstract Transition Network.
AtnState
A node in the ANTLR ATN graph.
IntervalSet
Ordered set of integer intervals used by set and negated-set transitions.

Enums§

AtnStateKind
Serialized ANTLR state kind.
AtnType
Distinguishes lexer ATNs from parser ATNs in serialized grammar metadata.
LexerAction
Serialized lexer action attached to an action transition.
Transition
Edge between two ATN states.