1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//! # openscad-rs
//!
//! A high-performance `OpenSCAD` parser library for Rust.
//!
//! Parses `.scad` source files into a well-typed AST suitable for
//! building compilers, formatters, linters, and language servers.
//!
//! ## Quick Start
//!
//! ```rust
//! use openscad_rs::parse;
//!
//! let source = r#"
//! module box(size = 10) {
//! cube(size);
//! }
//! box(size = 20);
//! "#;
//!
//! let ast = parse(source).expect("parse error");
//! println!("Parsed {} statements", ast.statements.len());
//! ```
// Suppress false positive from thiserror/miette derive macros
// Re-exports for convenience
pub use ;
pub use ;
pub use parse;
pub use Span;
pub use Visitor;