powerio_dist/glm/mod.rs
1//! GridLAB-D source syntax, bounded offline preprocessing and static import.
2//!
3//! The source layer preserves statements and source spans without executing GLM
4//! scripts or certifying electrical meaning. Raw syntax keeps
5//! directives inert; preprocessing resolves only the supported local profile.
6//! [`parse`] separately imports phase-to-earth and phase-pair P/I/Z loads,
7//! including traditional delta flags and scalar setters, and the explicit
8//! line-matrix and overhead conductor/spacing profiles, rejecting unmodeled physics.
9//! Distribution and facade dispatch select PNNL 5.3 for `.glm`/`gridlabd`, or
10//! Arras 4.3 for `gridlabd-arras`. Same-profile emission replays acquired project
11//! files; [`emit_canonical`] generates a single file from current typed values.
12
13mod connections;
14mod coordinates;
15mod emit_project;
16mod line_physics;
17mod objects;
18mod preprocess;
19mod project;
20mod quantities;
21mod read;
22mod syntax;
23mod units;
24mod write;
25
26pub use coordinates::GlmCoordinates;
27pub(crate) use emit_project::retained_project;
28pub use objects::{GlmObject, GlmProperty, GlmPropertyValue, ObjectIndex, ObjectKey};
29pub use preprocess::{
30 ExpansionOrigin, GlmDialect, PreparedGlm, PreprocessOptions, preprocess_source,
31};
32pub use project::{GlmProject, parse_project};
33pub use quantities::{GlmQuantity, GlmQuantityKind};
34pub use read::parse;
35pub use syntax::{RawGlm, Statement, Token, TokenKind, parse_raw_source};
36pub use write::emit_canonical;
37pub(crate) use write::emit_text as emit_glm_text;