Changeset 3711:a539aff0e476 in livinglogic.python.xist for src/ll/ul4c.py

Show
Ignore:
Timestamp:
02/28/09 13:25:06 (10 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

Add a reversed function to UL4 (issue #5). Bump file format version.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/ll/ul4c.py

    r3703 r3711  
    624624    is a generator) or :meth:`renders` (which returns a string). 
    625625    """ 
    626     version = "8" 
     626    version = "9" 
    627627 
    628628    def __init__(self): 
     
    11271127    def _pythonsource_dispatch_callfunc1_type(self, opcode): 
    11281128        self.lines.append("%sreg%d = ul4c._type(reg%d)" % (self.indent, opcode.r1, opcode.r2)) 
     1129 
     1130    def _pythonsource_dispatch_callfunc1_reversed(self, opcode): 
     1131        self.lines.append("%sreg%d = reversed(reg%d)" % (self.indent, opcode.r1, opcode.r2)) 
    11291132 
    11301133    def _pythonsource_dispatch_callfunc2_range(self, opcode):