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.
Supported from Python >= 3.4
## Features
1. Case in-sensitive variable names and keywords
TODO: list features
TODO: describe operators associativity and precedence
## Testing
Run tests:
`python run_tests.py`
## 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.
Supported from Python >= 3.4
## Features
1. Case in-sensitive variable names and keywords
TODO: list features
TODO: describe operators associativity and precedence
## Testing
Run tests:
`python run_tests.py`
## 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.4.tar.gz
(8.0 kB
view hashes)
Built Distribution
bamboolean-0.1.4-py3-none-any.whl
(11.3 kB
view hashes)
Close
Hashes for bamboolean-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9c13e049c5761fd512389ef94bdd6d079df34829b794e465b1240c0a1d27b86 |
|
MD5 | 1333c5ce7fc9494d1f3e236926c07f4b |
|
BLAKE2b-256 | 59047a5144d583a11c79e3c9503546db359249d1336886be329f1c54e18a2365 |