Changeset 353


Ignore:
Timestamp:
Feb 1, 2010, 5:22:26 PM (9 years ago)
Author:
eamiri
Message:

initializing bit streams to zero supported

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/parabix2/Compiler/py2bitexpr.py

    r352 r353  
    133133                        return bitexpr.TrueLiteral()
    134134                return bitexpr.Var(ast_expr.id)
     135        elif isinstance(ast_expr, ast.Num):
     136                assert(ast_expr.n == 0)
     137                return bitexpr.FalseLiteral()
    135138        elif isinstance(ast_expr, ast.Attribute):
    136139                if isinstance(ast_expr.value, ast.Name):
     
    193196                            return "%s.%s" % (v.value.id, translate_index(v.slice.value))
    194197                        else:
    195                            
    196198                            assert(1==0)
    197199                else: raise PyBitError("Unknown operator %s\n" % ast.dump(v))
Note: See TracChangeset for help on using the changeset viewer.