Interpreter of Boolean Logic Language
Project description
# Bamboolean interpreter
Implementation of Bamboolean - Boolean Logic Language
Bamboolean is a simple language that consumes array of pre-defined variables, and
returns boolean value if constraints on these variables are met.
## Features
1. Case in-sensitive variable names and keywords
TODO: list features
TODO: describe operators associativity and precedence
## Testing
Run tests:
`python -m unittest discover bamboolean/`
## BNF Grammar
```
expr : simple_expr (OR simple_expr)*
simple_expr : term (AND term)*
term : constraint
| LPAREN expr RPAREN
constraint : variable relational_operator value
value : INTEGER
| FLOAT
| STRING
| BOOL
variable: ID
relational_operator : ( EQ | NE | LT | LTE | GT | GTE )
```
Implementation of Bamboolean - Boolean Logic Language
Bamboolean is a simple language that consumes array of pre-defined variables, and
returns boolean value if constraints on these variables are met.
## Features
1. Case in-sensitive variable names and keywords
TODO: list features
TODO: describe operators associativity and precedence
## Testing
Run tests:
`python -m unittest discover bamboolean/`
## BNF Grammar
```
expr : simple_expr (OR simple_expr)*
simple_expr : term (AND term)*
term : constraint
| LPAREN expr RPAREN
constraint : variable relational_operator value
value : INTEGER
| FLOAT
| STRING
| BOOL
variable: ID
relational_operator : ( EQ | NE | LT | LTE | GT | GTE )
```
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bamboolean-0.1.0.tar.gz
(6.5 kB
view hashes)
Built Distribution
bamboolean-0.1.0-py3-none-any.whl
(10.2 kB
view hashes)
Close
Hashes for bamboolean-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a2711099aa5d1a22b48ae7c9dfd99d8c1ba9a477562380549406ff1a486cb57 |
|
MD5 | 4b76eefbea508452e5e73138e3563c5a |
|
BLAKE2b-256 | 4a4472d0fbed1098768238b06ca8c23147c49e3b92ef024d0c838d5731987c07 |