Skip to main content

Evaluation of boolean expressions in natural languages

Project description

TODO: Complete this document.

Supported grammar

The following Backus-Naur Form (BNF) defines the supported grammar:

<boolean-expression> ::= <operations>

<operation> ::=

<flat-operation> ::= <or-operation>*
<or-operation> ::= <and-operation> ["OR" <and-operation>]
<and-operation> ::= <basic-operation> ["AND" <basic-operation>]

<basic-operation> ::= ["NOT"] <atom-operand>
<atom-operand> ::= <number> | <quoted-string> | <variable>

<number> ::= <digit>+ [<decimal-separator> <digit>+]
<digit> ::= "0".."9"
<decimal-separator> ::= "."                                   -- replaceable
<variable> ::= <word> ["." <word>]

Where the following constants can be translated:

  • "NOT".

  • ".".

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

booleano-1.0a1dev-20090524.tar.gz (16.4 kB view details)

Uploaded Source

Built Distribution

booleano-1.0a1dev_20090524-py2.6.egg (47.3 kB view details)

Uploaded Source

File details

Details for the file booleano-1.0a1dev-20090524.tar.gz.

File metadata

File hashes

Hashes for booleano-1.0a1dev-20090524.tar.gz
Algorithm Hash digest
SHA256 b9c9bf6908af795bf326dd2a4975b57214730160e3c2273313e83defdeeb81e4
MD5 0beed44354fb48bd7b687a988cfdd792
BLAKE2b-256 905f20d2b89096df6a1ed174e64bcb2fba5020aa199cf1873a405dc202e04202

See more details on using hashes here.

File details

Details for the file booleano-1.0a1dev_20090524-py2.6.egg.

File metadata

File hashes

Hashes for booleano-1.0a1dev_20090524-py2.6.egg
Algorithm Hash digest
SHA256 3c4876a63f3a064180177535473564dfb618405db813b421514290c20d191dd9
MD5 dea61db597297239674cb9e89174b7dc
BLAKE2b-256 062435f4fdd5383d09a67b44dd2c2adabb698e01cb757763bb4d7c6a71b7d2c1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page