Add host prelude embedding API

This commit is contained in:
2026-06-16 11:06:56 +09:00
parent 6316939438
commit e23b31da46
7 changed files with 427 additions and 3 deletions
+3 -1
View File
@@ -4,6 +4,7 @@ extern crate alloc;
pub mod ast;
pub mod diagnostic;
pub mod embedding;
pub mod eval;
pub mod lexer;
pub mod module;
@@ -13,11 +14,12 @@ pub mod span;
pub use ast::{Ast, BinaryOp, CompareOp, Expr, ExprId, Field, Literal, Param};
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::{Data, ExprRef, ModuleId, RuntimeValue};
pub use runtime::{Constraint, Data, ExprRef, LiteralValue, ModuleId, PrimitiveType, RuntimeValue};
pub use span::{SourceId, Span};
pub fn version() -> &'static str {