Skip to main content

shape_ast/
lib.rs

1// ShapeError carries location info for good diagnostics, making it larger than clippy's threshold.
2// Boxing it everywhere would hurt ergonomics across the entire codebase.
3#![allow(clippy::result_large_err)]
4
5pub mod ast;
6pub mod data;
7pub mod error;
8pub mod int_width;
9pub mod interpolation;
10pub mod parser;
11pub mod transform;
12
13pub use ast::*;
14pub use data::{Timeframe, TimeframeUnit};
15pub use error::{Result, ShapeError, SourceLocation};
16pub use int_width::IntWidth;
17pub use parser::parse_program;
18pub use parser::resilient::{ParseError, ParseErrorKind, PartialProgram, parse_program_resilient};
19pub use transform::desugar_program;