{"id":27741535,"url":"https://github.com/nowux/rlpt","last_synced_at":"2025-04-28T16:20:33.519Z","repository":{"id":289921567,"uuid":"972825300","full_name":"nowuX/rlpt","owner":"nowuX","description":"Lightweight truth table generator for propositional logic expressions.","archived":false,"fork":false,"pushed_at":"2025-04-25T18:38:36.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-25T19:31:29.299Z","etag":null,"topics":["parser","propositional-logic","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nowuX.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-25T18:17:05.000Z","updated_at":"2025-04-25T18:38:40.000Z","dependencies_parsed_at":"2025-04-25T19:31:46.202Z","dependency_job_id":"3ff660cb-2947-413e-a0ac-959694e98507","html_url":"https://github.com/nowuX/rlpt","commit_stats":null,"previous_names":["nowux/rlpt"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nowuX%2Frlpt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nowuX%2Frlpt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nowuX%2Frlpt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nowuX%2Frlpt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nowuX","download_url":"https://codeload.github.com/nowuX/rlpt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251342721,"owners_count":21574245,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["parser","propositional-logic","rust"],"created_at":"2025-04-28T16:20:32.881Z","updated_at":"2025-04-28T16:20:33.513Z","avatar_url":"https://github.com/nowuX.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RLPT\nRPLT (Rust Propsoitional Logic Table) is a lightweight truth table generator for propositional logic expressions. Written in Rust, it parses logical formulas and outputs their complete truth tables. Supports operators like NOT, AND, OR, CONDITIONAL and BICONDITIONAL\n\n# Build From Source\n\nTo build this project from source, follow these steps:\n\nInstall [Rust](https://www.rust-lang.org/tools/install).\n\n### Building the Project\n1. Clone this repository to your local machine:\n```bash\ngit clone https://github.com/nowuX/rlpt.git\ncd rlpt\ncargo run\n```\n\n## Usage\nChange the `s` value in `main.rs`\n```rust\n// in main.rs\nlet s = vec![\n    \"p -\u003e ( p or q )\",\n    \"( p and q ) and ~ p\",\n];\n// cargo run # in console\n/**\nOutput:\n╭───┬───┬──────────┬─────────────────╮\n│ p ┆ q ┆ (p or q) ┆ (p -\u003e (p or q)) │\n╞═══╪═══╪══════════╪═════════════════╡\n│ V ┆ V ┆ V        ┆ V               │\n├╌╌╌┼╌╌╌┼╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┤\n│ V ┆ F ┆ V        ┆ V               │\n├╌╌╌┼╌╌╌┼╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┤\n│ F ┆ V ┆ V        ┆ V               │\n├╌╌╌┼╌╌╌┼╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┤\n│ F ┆ F ┆ F        ┆ V               │\n╰───┴───┴──────────┴─────────────────╯\n\n╭───┬───┬─────┬───────────┬─────────────────────╮\n│ p ┆ q ┆ ~ p ┆ (p and q) ┆ ((p and q) and ~ p) │\n╞═══╪═══╪═════╪═══════════╪═════════════════════╡\n│ V ┆ V ┆ F   ┆ V         ┆ F                   │\n├╌╌╌┼╌╌╌┼╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┤\n│ V ┆ F ┆ F   ┆ F         ┆ F                   │\n├╌╌╌┼╌╌╌┼╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┤\n│ F ┆ V ┆ V   ┆ F         ┆ F                   │\n├╌╌╌┼╌╌╌┼╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┤\n│ F ┆ F ┆ V   ┆ F         ┆ F                   │\n╰───┴───┴─────┴───────────┴─────────────────────╯\n*/\n```\n\n## TODO\n- [ ] Support arguments with Clap\n- [ ] Better display value `~ p` -\u003e `[F] V`, `p or q` -\u003e `V [V] F`\n- [ ] Optional better display\n- [ ] Just vars and result table\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnowux%2Frlpt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnowux%2Frlpt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnowux%2Frlpt/lists"}