30 lines
878 B
Rust
30 lines
878 B
Rust
#![cfg_attr(not(feature = "std"), no_std)]
|
|
|
|
extern crate alloc;
|
|
|
|
pub mod ast;
|
|
pub mod constraints;
|
|
pub mod diagnostic;
|
|
pub mod embedding;
|
|
pub mod eval;
|
|
pub mod lexer;
|
|
pub mod module;
|
|
pub mod parser;
|
|
pub mod runtime;
|
|
pub mod span;
|
|
|
|
pub use ast::{Ast, BinaryOp, CompareOp, Expr, ExprId, Field, Literal, Param};
|
|
pub use constraints::normalize_constraints;
|
|
pub use diagnostic::{Diagnostic, DiagnosticKind, Result};
|
|
pub use embedding::{HostField, HostValue};
|
|
pub use eval::Engine;
|
|
pub use lexer::{Lexer, Token, TokenKind};
|
|
pub use module::{EmptyLoader, LoadedSource, Module, SourceLoader};
|
|
pub use parser::{ParseOutput, Parser, SourceForm, parse_source, parse_source_with_source_id};
|
|
pub use runtime::{Constraint, Data, ExprRef, LiteralValue, ModuleId, PrimitiveType, RuntimeValue};
|
|
pub use span::{SourceId, Span};
|
|
|
|
pub fn version() -> &'static str {
|
|
env!("CARGO_PKG_VERSION")
|
|
}
|