Package intermine :: Module constraints :: Class LogicParser
[hide private]
[frames] | no frames]

Class LogicParser

source code

object --+
         |
        LogicParser

Instance Methods [hide private]
 
__init__(self, query)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
get_constraint(self, code) source code
 
get_priority(self, op) source code
 
parse(self, logic_str) source code
 
check_syntax(self, infix_tokens) source code
 
infix_to_postfix(self, infix_tokens) source code
 
postfix_to_tree(self, postfix_tokens) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  ops = {'&': 'AND', '&&': 'AND', '(': '(', ')': ')', 'AND': 'AN...
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, query)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

Class Variable Details [hide private]

ops

Value:
{'&': 'AND',
 '&&': 'AND',
 '(': '(',
 ')': ')',
 'AND': 'AND',
 'OR': 'OR',
 '|': 'OR',
 '||': 'OR'}