Changeset 769 for proto


Ignore:
Timestamp:
Dec 3, 2010, 4:43:45 AM (9 years ago)
Author:
cameron
Message:

CarryCount? for ast.Sub, ast.Add

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/Compiler/pablo.py

    r765 r769  
    175175    if is_Advance_Call(callnode) or is_ScanThru_Call(callnode):
    176176      self.carry_count += 1
    177   def visit_Binop(self, exprnode):
     177  def visit_BinOp(self, exprnode):
    178178    self.generic_visit(exprnode)
    179179    if isinstance(exprnode.op, ast.Sub):
     180      self.carry_count += 1
     181    if isinstance(exprnode.op, ast.Add):
    180182      self.carry_count += 1
    181183  def count(self, nodeToVisit):
Note: See TracChangeset for help on using the changeset viewer.