if self.has(command) and self.check(command) == False: # not in {True, None}:
return
# print('\njoy?', command)
- print(command)
+ self.print_command(command)
super(StackDisplayWorld, self).interpret(command)
+ def print_command(self, command):
+ print(command)
+
def print_stack(self):
print('\n%s <-' % stack_to_string(self.stack))
self.viewer.update_stack(self.stack)
def print_stack(self):
- # StackDisplayWorld.print_stack(self)
+ print('%s . ' % stack_to_string(self.stack), end='')
if self.viewer:
self.viewer.update_stack(self.stack)
Ss = list(map(StackStarJoyType, _R))
+# "sec": stack effect comment, like in Forth.
sec0 = stack_effect(t1)()
sec1 = stack_effect(s0, i1)(s1)
sec2 = stack_effect(s0, i1)(a1)
sec_unary_math = stack_effect(n1)(n2)
sec_Ns_math = stack_effect((Ns[1], s1),)(n0)
+# This is the main dict we're building.
_dictionary = {}