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.3.tar.gz
(7.5 kB
view hashes)
Built Distribution
bamboolean-0.1.3-py3-none-any.whl
(10.5 kB
view hashes)
Close
Hashes for bamboolean-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07319fc514c021603e97ce55c1d369ff0e8e66385bd43a546985d470a8d04e10 |
|
MD5 | 2a5e8af6d39cbfa0997a474827abb877 |
|
BLAKE2b-256 | b7074e1da1aeccd78b4ffd40c93ff734ffb13ce3df1356c77160cbf458f46856 |