Logo Search packages:      
Sourcecode: relational version File versions  Download package

Public Member Functions | Public Attributes | Static Public Attributes

relational::parser::node Class Reference

List of all members.

Public Member Functions

def __eq__
def __init__
def __str__
def result_format
def toPython

Public Attributes

 child
 left
 name
 prop
 right

Static Public Attributes

 kind = None

Detailed Description

This class is a node of a relational expression. Leaves are relations and internal nodes are operations.

The kind property says if the node is a binary operator, unary operator or relation.
Since relations are leaves, a relation node will have no attribute for children.

If the node is a binary operator, it will have left and right properties.

If the node is a unary operator, it will have a child, pointing to the child node and a prop containing
the string with the props of the operation.

This class is used to convert an expression into python code.

Definition at line 30 of file parser.py.


The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index