Changeset 1052 for proto/charsetcompiler


Ignore:
Timestamp:
Mar 28, 2011, 8:17:48 PM (8 years ago)
Author:
cameron
Message:

Update code generation for Pablo

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/charsetcompiler/charset_compiler.py

    r915 r1052  
    239239
    240240def bit_var(n):
    241     return 'bit[%i]' % n
     241#    return 'bit[%i]' % n
     242    return 'basis_bits.bit_%i' % n
    242243def make_bitv(n):
    243244    return Var(bit_var(n))
     
    380381    def add_assignment(self, varname, expr):
    381382        self.common_expression_map[expr] = varname
    382         self.generated_code.append('%s%s = %s;\n' % (self.typedecl, varname, expr))
     383        #self.generated_code.append('%s%s = %s;\n' % (self.typedecl, varname, expr))
     384        self.generated_code.append('\t%s%s = %s\n' % (self.typedecl, varname, expr))
    383385    def expr_string_to_variable(self, expr_string):
    384386        if self.common_expression_map.has_key(expr_string):
Note: See TracChangeset for help on using the changeset viewer.