/ . / CalcAttr / attrdef.py / Parser
Methods
|
|
|
p_factor_2
|
p_factor_2 ( self, args )
factor ::= LP expr RP
|
|
p_attribute
|
p_attribute ( self, args )
attribute ::= scope DOT IDENTIFIER
|
|
p_factor_1
|
p_factor_1 ( self, args )
factor ::= NUMBER
|
|
p_term_1
|
p_term_1 ( self, args )
term ::= factor
|
|
p_term_2
|
p_term_2 ( self, args )
term ::= term MUL factor
|
|
p_term_3
|
p_term_3 ( self, args )
term ::= term DIV factor
|
|
p_factor_4
|
p_factor_4 ( self, args )
factor ::= func LP expr RP
|
|
p_expr_3
|
p_expr_3 ( self, args )
expr ::= expr SUB term
|
|
p_expr_2
|
p_expr_2 ( self, args )
expr ::= expr ADD term
|
|
p_expr_1
|
p_expr_1 ( self, args )
expr ::= term
|
|
p_scope_3
|
p_scope_3 ( self, args )
scope ::= MOLECULE
|
|
error
|
error ( self, token )
Exceptions
|
|
SyntaxError, "Syntax error at or near `%s' token" % token
|
|
|
p_func_1
|
p_func_1 ( self, args )
func ::= SUM
|
|
p_func_2
|
p_func_2 ( self, args )
func ::= AVERAGE
|
|
p_scope_1
|
p_scope_1 ( self, args )
scope ::= ATOM
|
|
p_factor_3
|
p_factor_3 ( self, args )
factor ::= attribute
|
|
__init__
|
__init__ ( self, start="expr" )
|
|
p_scope_2
|
p_scope_2 ( self, args )
scope ::= RESIDUE
|
|
|