#![forbid(unsafe_code)]
pub mod deck;
pub mod diag;
pub mod ir;
pub mod span;
mod dot;
mod elem;
mod expr;
mod meas;
mod param;
mod parse;
mod scan;
mod subckt;
pub use deck::{Deck, IncludeLoader};
pub use diag::{Diagnostic, Severity};
pub use expr::{ExprError, MAX_DEPTH as EXPR_MAX_DEPTH, MAX_NODES as EXPR_MAX_NODES, parse_expr};
pub use meas::{MeasSyntaxError, MeasWarning, parse_measure_body};
pub use parse::{ParseOutcome, parse_file, parse_str, parse_with_loader};
pub use span::{FileId, Location, SourceMap, Span};
#[derive(Debug, thiserror::Error)]
pub enum Error {
#[error("cannot read {path}: {message}")]
Io {
path: std::path::PathBuf,
message: String,
},
}