Crates.io | logic_tracer |
lib.rs | logic_tracer |
version | 0.0.10 |
source | src |
created_at | 2023-12-25 22:48:03.592246 |
updated_at | 2024-05-29 15:45:04.148745 |
description | Recognize a logic proposition and trace its truth value, also generate a truth table (still in development) |
homepage | |
repository | https://github.com/Yrrrrrf/logic_tracer |
max_upload_size | |
id | 1080526 |
size | 76,595 |
Logic Traces is a simple crate that reads a logical proposition and interprets it to build the truth table and the AST of the proposition.
Makes use of regular expressions are used to validate the input and to tokenize the proposition.
Also implements the Shunting Yard Algorithm (not yet) to build the AST.
Check the examples direcotry to see how to use the crate.
cargo run --example <example name>
\sum_{i=1}^{n} i = \frac{n(n+1)}{2}
or smth like thatI want to make this crate copletely independent of any other crate.
So, I will implement the parser myself...
But also I'll check the pest crate to see how it works and to see if I can use it in some other project... (maybe in the future)
This project is licensed under the Compounds of the MIT license