Implement module loading and imports
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user