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.

Filename, size & hash SHA256 hash help File type Python version Upload date
booleano-1.0a1dev_20090523-py2.6.egg (47.1 kB) Copy SHA256 hash SHA256 Egg 2.6
booleano-1.0a1dev-20090523.tar.gz (16.2 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page