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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Source

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