Changeset fb5c8c7 in sasmodels
- Timestamp:
- Dec 15, 2017 11:18:08 AM (7 years ago)
- Children:
- fa74acf
- Parents:
- 937afef
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/py2c.py
r937afef rfb5c8c7 46 46 12/07/2017, OE: C variable definition handled in 'define_C_Vars' 47 47 : Python integer division, '//', translated to C in 'translate_integer_divide' 48 12/15/2017, OE: Precedence maintained by writing opening and closing parenthesesm '(',')', 49 in procedure 'visit_BinOp'. 48 50 """ 49 51 import ast … … 892 894 893 895 def visit_BinOp(self, node): 896 self.write_c("(") 894 897 if ('%s' % BINOP_SYMBOLS[type(node.op)] == BINOP_SYMBOLS[ast.Pow]): 895 898 self.translate_power (node) … … 900 903 self.write_c(' %s ' % BINOP_SYMBOLS[type(node.op)]) 901 904 self.visit(node.right) 905 self.write_c(")") 906 902 907 # for C 903 908 def visit_BoolOp(self, node):
Note: See TracChangeset
for help on using the changeset viewer.