mirror of
https://github.com/gorules/zen.git
synced 2026-10-06 16:02:19 +00:00
* temp: zen-expression rewrite * rewrite standard parser * stabilise parser, upgrade dependencies * implement unary parser * align builtin behavior * fix tests and minor bugs * refactor exports, update docs * fix expression repl * cleanup * cleanup vm * replace expression with expression-rewrite * update d.ts file * fix failing test
22 lines
591 B
Rust
22 lines
591 B
Rust
//! Parses Tokens into AST
|
|
//!
|
|
//! The Parser module processes tokens from the Lexer, constructing an Abstract Syntax Tree (AST).
|
|
//!
|
|
//! It's available in two specialized variants:
|
|
//! - Standard, designed for comprehensive expression evaluation yielding any result
|
|
//! - Unary, specifically created for truthy tests with exclusive boolean outcomes
|
|
mod ast;
|
|
mod builtin;
|
|
mod constants;
|
|
mod error;
|
|
mod parser;
|
|
mod standard;
|
|
mod unary;
|
|
|
|
pub use ast::Node;
|
|
pub use builtin::BuiltInFunction;
|
|
pub use error::ParserError;
|
|
pub use parser::Parser;
|
|
pub use standard::Standard;
|
|
pub use unary::Unary;
|