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.2.tar.gz
(6.5 kB
view hashes)
Built Distribution
bamboolean-0.1.2-py3-none-any.whl
(10.3 kB
view hashes)
Close
Hashes for bamboolean-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1c8b141ace53216e9efd1b309d34d313abe6c50c2eeac5ccaeb27dc2dbb2e66 |
|
MD5 | 6476e02e6e67648b8469d758494e3917 |
|
BLAKE2b-256 | 3cc5769b2ceeaaded57f02f82b55fd42a18ef39eaef9812843dea59768567e06 |