Implement module loading and imports

This commit is contained in:
2026-06-16 10:01:31 +09:00
parent fead194ba6
commit bd3da1aeee
13 changed files with 586 additions and 124 deletions
+5 -3
View File
@@ -6,6 +6,7 @@ pub mod ast;
pub mod diagnostic;
pub mod eval;
pub mod lexer;
pub mod module;
pub mod parser;
pub mod runtime;
pub mod span;
@@ -14,9 +15,10 @@ pub use ast::{Ast, BinaryOp, CompareOp, Expr, ExprId, Field, Literal, Param};
pub use diagnostic::{Diagnostic, DiagnosticKind, Result};
pub use eval::Engine;
pub use lexer::{Lexer, Token, TokenKind};
pub use parser::{ParseOutput, Parser, parse_source};
pub use runtime::{Data, RuntimeValue};
pub use span::Span;
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 span::{SourceId, Span};
pub fn version() -> &'static str {
env!("CARGO_PKG_VERSION")