https://github.com/semibran/bool
tiny boolean expression parser
https://github.com/semibran/bool
Last synced: about 1 year ago
JSON representation
tiny boolean expression parser
- Host: GitHub
- URL: https://github.com/semibran/bool
- Owner: semibran
- License: mit
- Created: 2020-10-29T22:02:19.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-30T22:40:22.000Z (over 5 years ago)
- Last Synced: 2025-02-12T18:59:26.103Z (over 1 year ago)
- Language: JavaScript
- Size: 213 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# bool
> tiny boolean expression parser

## CLI
```sh
usage:
$ bool [program] ...exprs
programs (defaults to table):
help show this help message
table displays the expression's associated truth table
equals determines if expr1 and expr2 are equivalent
parse displays expr as a lexed binary tree
fnify displays expr as a C function
bitstr displays expr as the final column in its truth table
id displays expr as its bitstring's base 10 uint
debug display truth table with debugging information
examples:
$ bool x+y
$ bool table x+y
$ bool equals "x'y'" "(x+y)'"
```