Changeset 147:749677aebf7e in livinglogic.java.ul4

Show
Ignore:
Timestamp:
07/10/08 22:16:29 (11 years ago)
Author:
Alexander Lamm <alexander.lamm@…>
Branch:
default
Message:

Drop rule for slice copy.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • library/src/com/livinglogic/ul4/ul4c.py

    r136 r147  
    290290    expr_getslice2.spark = ['expr8 ::= expr8 [ : expr0 ]'] 
    291291 
    292     def expr_getslice(self, (expr, _0, _1, _2)): 
    293         if isinstance(expr, ul4.Const): # Constant folding 
    294             return self.makeconst(expr.start, _2.end, expr.value[:]) 
    295         return ul4.GetSlice(expr.start, _2.end, expr) 
    296     expr_getslice.spark = ['expr8 ::= expr8 [ : ]'] 
    297  
    298292    def expr_neg(self, (_0, expr)): 
    299293        if isinstance(expr, ul4.Const): # Constant folding