24 lines
555 B
Rust
24 lines
555 B
Rust
#![cfg_attr(not(feature = "std"), no_std)]
|
|
|
|
extern crate alloc;
|
|
|
|
pub mod ast;
|
|
pub mod diagnostic;
|
|
pub mod eval;
|
|
pub mod lexer;
|
|
pub mod parser;
|
|
pub mod runtime;
|
|
pub mod span;
|
|
|
|
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 fn version() -> &'static str {
|
|
env!("CARGO_PKG_VERSION")
|
|
}
|