Skip to main content

active_core/
lib.rs

1//! Active Core — Parser, IR, Evaluator, Types, Diagnostics
2//!
3//! This is the alpha production foundation of the Active language.
4
5pub mod ast;
6pub mod convert;
7pub mod diag;
8pub mod eval;
9pub mod fmt;
10pub mod graph;
11pub mod heal;
12pub mod ir;
13pub mod lint;
14pub mod parser;
15pub mod provenance;
16pub mod sign;
17pub mod types;
18pub mod validate;
19
20pub use diag::{Diagnostic, Repair, RepairKind, Severity};
21pub use eval::{Budget, BudgetKind, Engine, EvalError, IncrementalMemo};
22pub use ir::{
23    Annotation, AnnotationKind, Attachment, BinOp, DependsOn, IncludeStmt, InterpPart, Module,
24    Node, NodeId, PatchOp, SchemaField, SemanticTag, Style, TriviaComment, UnOp, Value,
25};
26pub use lint::{lint, lint_with, LintOptions};
27pub use parser::{
28    parse, parse_file, parse_file_with_trust, parse_recovering, parse_text_recovering_with_file,
29    parse_text_with_file, parse_with, Lexed, ParseOptions,
30};
31pub use types::{Constraint, Unit};
32
33/// Library version
34pub const VERSION: &str = env!("CARGO_PKG_VERSION");