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.

Files for booleano, version 1.0a1dev-20090710
Filename, size File type Python version Upload date Hashes
Filename, size booleano-1.0a1dev_20090710-py2.6.egg (85.4 kB) File type Egg Python version 2.6 Upload date Hashes View
Filename, size booleano-1.0a1dev-20090710.tar.gz (26.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page