#![cfg_attr(
not(test),
warn(clippy::unwrap_used, clippy::expect_used, clippy::panic)
)]
mod analysis;
mod check;
mod diag;
mod grammar;
mod graph;
mod ir;
mod items;
mod lines;
mod parse;
#[cfg(feature = "reference")]
mod reference;
mod render;
mod resolve;
mod tree;
mod vm;
pub use check::check;
pub use diag::{Diagnostic, DiagnosticCode, Severity};
pub use grammar::builder;
pub use grammar::{
Alternative, BUILT_IN_BUILDERS, BuilderArg, BuilderValue, Class, ClassItem, Constant, Count,
ErrorLabel, Expr, ExprKind, Grammar, Import, Level, MAX_EXPRESSION_DEPTH, ModuleFiles, Modules,
Name, Property, Recover, Rule, RuleBody, RuleKind, Span, Text, ValueBuilder,
};
pub use lines::{LineCursor, LineIndex, Position};
pub use parse::{
DEFAULT_MAX_DEPTH, DEFAULT_MAX_MEMORY_BYTES, DEFAULT_MAX_STEPS,
DEFAULT_MEMORY_BYTES_PER_INPUT_BYTE, DEFAULT_MIN_MEMORY_BYTES, Limit, Limits, ParseError,
ParseErrorKind, Recovery,
};
#[cfg(feature = "reference")]
pub use reference::Reference;
pub use render::{Source, error_title, visible};
pub use tree::{FieldCount, FieldId, Kind, KindId, Names, NodeRef, Tree};
pub use vm::{Memo, Options, Parser, Passes, Profile, ProfileRow};
pub const VERSION: &str = env!("CARGO_PKG_VERSION");