git @ Cat's Eye Technologies Xoomonk / afbceed
Sort variables by name when depicting a store. catseye 9 years ago
2 changed file(s) with 3 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
281281 namespace.
282282
283283 | print $add
284 = [result=0,x=?,y=?]
285
284286 | $add.x := 3
285287 | $add.y := 5
286288 | print $add.result
287289 | print $add
288 = [x=?,y=?,result=0]
289290 = 8
290291 = [x=3,y=5,result=8]
291292
300300
301301 def __str__(self):
302302 l = []
303 for name in self.variables:
303 for name in sorted(self.variables):
304304 if name in self.unassigned:
305305 value = '?'
306306 else: