def take_register(self, rtype = SharedData.TYPES.NO_TYPE):
if len(self.free_registers) == <NUM_LIT:0>:<EOL><INDENT>self.error("<STR_LIT>")<EOL><DEDENT>reg = self.free_registers.pop()<EOL>self.used_registers.append(reg)<EOL>self.symtab.set_type(reg, rtype)<EOL>return reg<EOL>
Reserves one working register and sets its type