class StackDisplayWorld(World):
-
def __init__(self, repo, filename, rel_filename, dictionary=None, text_widget=None):
self.filename = filename
stack = self.load_stack() or ()
def joy(stack, expression, dictionary, viewer=None):
'''Evaluate the Joy expression on the stack.
-
+
The basic joy() function is quite straightforward. It iterates through a
sequence of terms which are either literals (strings, numbers, sequences)
or functions. Literals are put onto the stack and functions are
poly_combinator_effect,
doc_from_stack_effect,
)
-
-
+
+
_SYM_NUMS = count().next
_COMB_NUMS = count().next
ifte == [nullary not] dipd branch
'''
#
-#
+#
# ifte == [nullary] dipd swap branch
# genrec == [[genrec] cons cons cons cons] nullary swons concat ifte