Changeset 2408 for proto/Compiler


Ignore:
Timestamp:
Sep 26, 2012, 7:35:38 PM (7 years ago)
Author:
ksherdy
Message:

Updated dump routine.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/Compiler/pablo.py

    r2393 r2408  
    729729       
    730730        def dump(self):
    731                 print "Name: " + self.type_name
    732                 print "Carry Count: "    + str(self.carry_count)
    733                 print "Init to One List: " #+ self.init_to_one_list = []
    734                 print "Adv n Count: "      #+ self.adv_n_count = 0
    735                 print "Instance Name:"     #+ self.instance_name = ""
    736                 print "Parameters:"        #+ self.parameters = ""
    737                 print "Declarations:"            #+ self.declarations = ""
    738                 print "Initializations:"   # + self.initializations = ""
    739 
     731                print "%s" % (self.type_name)
     732                print "%s=%s" % ("Carry Count", str(self.carry_count))
     733                print "%s=[%s]" % ("Init to One List" , ','.join(map(str,self.init_to_one_list)))
     734                print "%s=%s" % ("Adv n Count", str(self.adv_n_count))
     735        #print "Instance Name:"     #+ self.instance_name = ""
     736        #print "Parameters:"        #+ self.parameters = ""
     737        #print "Declarations:"           #+ self.declarations = ""
     738        #print "Initializations:"   # + self.initializations = ""
     739   
    740740#
    741741# TODO Consolidate *all* C code generation into the Emitter class.   Medium priority.
     
    966966        for key, value in self.stream_functions.iteritems():
    967967                        value.dump()
     968                sys.exit()
    968969               
    969970    self.emitter = Emitter(self.use_C_syntax)
Note: See TracChangeset for help on using the changeset viewer.