logical_expression_pest_parser/
lib.rs

1//! # Logic Expression Pest Parser
2//!
3//! This crate provides tools to parse, evaluate and generate truth tables for boolean logic expression.
4
5/// # Abstract Syntax Tree (AST) Module
6///
7/// Defines the `Expression` enum, which represents a node in the AST, and implements methods for its creation, evaluation, and variable collection.
8pub mod ast;
9
10/// # Parser Module
11///
12/// Defines the Pest `Grammar`, parser errors, and the `parse` function.
13pub mod parser;
14
15/// # Truth Table Module
16///
17/// Defines `TruthTable` and `TruthTableRow`, implements the `Display` trait for both structs and the `From` trait for `TruthTable`.
18pub mod truth_table;