All modules for which code is available
-- joy.joy +
- __builtin__ +
- joy.joy
- joy.library
- joy.parser
- joy.utils.generated_library diff --git a/docs/sphinx_docs/_build/html/_modules/joy/library.html b/docs/sphinx_docs/_build/html/_modules/joy/library.html index dfa9373..1fee689 100644 --- a/docs/sphinx_docs/_build/html/_modules/joy/library.html +++ b/docs/sphinx_docs/_build/html/_modules/joy/library.html @@ -160,7 +160,11 @@ ''' # ifte == [nullary not] dipd branch # ifte == [nullary] dipd swap branch - +# genrec == [[genrec] cons cons cons cons] nullary swons concat ifte + +# Another definition for while. FWIW +# while == over [[i] dip nullary] ccons [nullary] dip loop + ##ccons == cons cons ##unit == [] cons ##second == rest first @@ -254,8 +258,11 @@ self.body = text_to_expression(body_text) self._body = tuple(iter_stack(self.body)) self.__doc__ = doc or body_text + self._compiled = None def __call__(self, stack, expression, dictionary): + if self._compiled: + return self._compiled(stack, expression, dictionary) expression = list_to_stack(self._body, expression) return stack, expression, dictionary @@ -311,32 +318,6 @@ return expression, stack