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-20090523.tar.gz (16.2 kB view details)

Uploaded Source

Built Distribution

booleano-1.0a1dev_20090523-py2.6.egg (47.1 kB view details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for booleano-1.0a1dev-20090523.tar.gz
Algorithm Hash digest
SHA256 ff9ac3fca815f90bd9d46f1a4c36d32cb2aaefaca976fec531f75ef459792713
MD5 d4a6351585031e56210d937bf4f6fd3f
BLAKE2b-256 ee9977b40e0d77f582b8342683997cc4dc8c19e469e7d71bb06fc794dfb241a4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for booleano-1.0a1dev_20090523-py2.6.egg
Algorithm Hash digest
SHA256 038dbd26419a4f1cd0eb4540a0a92ffd5500bd1bd5b356bc81c27fbe15f32ac8
MD5 c33d2e45d72bbbcb971d96504776dfa1
BLAKE2b-256 e7f9c6d71729febcf23a4a64176a7bbd399baff319cbedce6751119abd2c6e3e

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