Ignore:
Timestamp:
Aug 2, 2014, 1:13:09 PM (5 years ago)
Author:
cameron
Message:

Advance operation in expr2py

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/charsetcompiler/CC_compiler.py

    r3947 r3948  
    252252               e2 = self.expr_string_to_variable(self.expr2py(expr.false_branch))
    253253               return '((%s & %s)|(~(%s) & %s))' %(sel, e1, sel, e2)
     254            elif isinstance(expr, Adv):
     255               operand = self.expr_string_to_variable(self.expr2py(expr.operand))
     256               return 'Advance((%s, %i)' %(operand, expr.offset)
    254257
    255258    def chardef2py(self, chardef):
Note: See TracChangeset for help on using the changeset viewer.