Skip to main content

Crate antlr4_runtime

Crate antlr4_runtime 

Source
Expand description

Clean-room ANTLR v4 runtime foundation for Rust.

Re-exports§

pub use atn::parser::ParserAtnPrediction;
pub use atn::parser::ParserAtnSimulator;
pub use atn::parser::ParserAtnSimulatorError;
pub use char_stream::CharStream;
pub use char_stream::InputStream;
pub use char_stream::PositionSummary;
pub use char_stream::TextInterval;
pub use dfa::DfaStateId;
pub use dfa::DfaTransition;
pub use dfa::ParserDfa;
pub use dfa::ParserDfaStateView;
pub use dfa::ParserDfaStats;
pub use errors::AntlrError;
pub use errors::ConsoleErrorListener;
pub use errors::ErrorListener;
pub use generated::GeneratedLexer;
pub use generated::GeneratedParser;
pub use generated::GrammarMetadata;
pub use int_stream::EOF;
pub use int_stream::IntStream;
pub use int_stream::UNKNOWN_SOURCE_NAME;
pub use lexer::BaseLexer;
pub use lexer::Lexer;
pub use lexer::LexerCustomAction;
pub use lexer::LexerLifecycleCtx;
pub use lexer::LexerMode;
pub use lexer::LexerPredicate;
pub use lexer::LexerSemCtx;
pub use parser::BailErrorStrategy;
pub use parser::BaseParser;
pub use parser::ExpectedTokenSet;
pub use parser::NoSemanticHooks;
pub use parser::Parser;
pub use parser::ParserAction;
pub use parser::ParserMemberAction;
pub use parser::ParserPredicate;
pub use parser::ParserReturnAction;
pub use parser::ParserRuleArg;
pub use parser::ParserRuntimeOptions;
pub use parser::ParserSemCtx;
pub use parser::ParserSemanticAction;
pub use parser::ParserSemanticPredicate;
pub use parser::ParserSemantics;
pub use parser::PredictionMode;
pub use parser::RecognitionArenaStats;
pub use parser::SemanticHooks;
pub use parser::UnknownSemanticPolicy;
pub use perf::dump as dump_prediction_perf_counters;
pub use perf::reset as reset_prediction_perf_counters;
pub use prediction::ContextId;
pub use prediction::PredictionContextStats;
pub use prediction::SemanticContext;
pub use recognizer::Recognizer;
pub use recognizer::RecognizerData;
pub use token::DEFAULT_CHANNEL;
pub use token::HIDDEN_CHANNEL;
pub use token::INVALID_TOKEN_TYPE;
pub use token::MAX_TOKEN_OFFSET;
pub use token::TOKEN_EOF;
pub use token::Token;
pub use token::TokenChannel;
pub use token::TokenId;
pub use token::TokenSink;
pub use token::TokenSource;
pub use token::TokenSpec;
pub use token::TokenStore;
pub use token::TokenStoreError;
pub use token::TokenView;
pub use token_stream::CommonTokenStream;
pub use tree::ErrorNodeView;
pub use tree::FromRuleNode;
pub use tree::GeneratedAttrs;
pub use tree::Node;
pub use tree::NodeChildren;
pub use tree::NodeId;
pub use tree::NodeKind;
pub use tree::ParseTree;
pub use tree::ParseTreeDescendants;
pub use tree::ParseTreeListener;
pub use tree::ParseTreeStats;
pub use tree::ParseTreeStorage;
pub use tree::ParseTreeWalker;
pub use tree::ParsedFile;
pub use tree::ParserRuleContext;
pub use tree::RuleNodeView;
pub use tree::TerminalNodeView;
pub use vocabulary::Vocabulary;

Modules§

atn
Abstract Transition Network structures used by generated lexers and parsers.
char_stream
dfa
errors
generated
int_stream
lexer
parser
perf
Lightweight counters for lexer and prediction performance investigations.
prediction
recognizer
semir
Semantic IR for grammar-embedded predicates and actions.
token
token_stream
tree
vocabulary

Functions§

java_style_list
Formats a slice the way Java’s List.toString does: [a, b, c].