Files
zen/core/expression/src/parser/mod.rs
T
stefan-gorules 5f423b7910 feat: zen expression rewrite (#107)
* 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
2023-12-12 08:50:25 +01:00

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;