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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

booleano-1.0a1dev_20090517-py2.6.egg (50.0 kB view details)

Uploaded Egg

File details

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

File metadata

File hashes

Hashes for booleano-1.0a1dev-20090517.tar.gz
Algorithm Hash digest
SHA256 5ac97240bde00b4be685d72caf42cc2064cbe497c4af588deaccc00190a9a92d
MD5 d2f09a456ab4eb84bf4a7dcdada0dcb5
BLAKE2b-256 9a66cabb3c0a7c20ed5e112dbd48ef60578a70b93e60fdbd1fffc2b65e218e5c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for booleano-1.0a1dev_20090517-py2.6.egg
Algorithm Hash digest
SHA256 8ba57e943151a8ea2c005e52250bad67f889c9e713138a01d52c1b9c66dcbee4
MD5 12782a5412a71355e261d4ef43c8256f
BLAKE2b-256 58e061cd8dd0638baf9f3a6a2c9c54fff03e7c82094cfba654a83ab88b8db9f9

See more details on using hashes here.

Supported by

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