Crate product_farm_json_logic

Crate product_farm_json_logic 

Source
Expand description

JSON Logic Parser, AST, and Bytecode Compiler

This crate provides:

  • Parsing JSON Logic expressions into an optimized AST
  • Bytecode compilation for fast evaluation
  • Tiered execution (interpreted AST → bytecode VM)
  • Automatic tier promotion based on evaluation count
  • Bytecode persistence via PersistedRule serialization

Re-exports§

pub use iter_eval::IterativeEvaluator;
pub use iter_eval::evaluate_iterative;
pub use ast::*;
pub use parser::*;
pub use compiler::*;
pub use vm::*;
pub use evaluator::*;
pub use error::*;
pub use tiered::*;

Modules§

ast
Abstract Syntax Tree for JSON Logic expressions
compiler
Bytecode compiler for JSON Logic expressions
config
Configuration for JSON Logic evaluation
error
Error types for JSON Logic operations
evaluator
High-level evaluator interface for JSON Logic
iter_eval
Loop-based (iterative) evaluator for JSON Logic
operations
JSON Logic operations registry and custom operation support
parser
JSON Logic parser - converts JSON to optimized AST
tiered
Tiered Compilation for JSON Logic
vm
Bytecode Virtual Machine for JSON Logic