diff --git a/README.md b/README.md index 00b6a9e..8aed6d7 100644 --- a/README.md +++ b/README.md @@ -134,6 +134,7 @@ The __dictionary__ associates symbols (strings) with Joy expressions that define available functions of the Joy system. Together the stack, expression, and dictionary are the entire state of the Joy interpreter. +### Interpreter ![joy_interpreter_flowchart.svg](/joy_interpreter_flowchart.svg) @@ -155,7 +156,7 @@ values from (at least) one end. > them being pushed onto the stack. But I also call [London Paris] a list. > So, [dup *] is a quotation but not a list. -From ["A Conversation with Manfred von Thun" w/ Stevan Apter](http://archive.vector.org.uk/art10000350 +From ["A Conversation with Manfred von Thun" w/ Stevan Apter](http://archive.vector.org.uk/art10000350) diff --git a/implementations/Python/simplejoy.py b/implementations/Python/simplejoy.py index 9015152..664071d 100755 --- a/implementations/Python/simplejoy.py +++ b/implementations/Python/simplejoy.py @@ -307,9 +307,9 @@ def joy(stack, expression, dictionary): ''' expr = push_quote(expression) # We keep a stack-of-stacks, see below. while expr: -## print( -## f'{stack_to_string(stack)} • {expr_to_string(expr)}' -## ) + print( + f'{stack_to_string(stack)} • {expr_to_string(expr)}' + ) term, expr = next_term(expr) if isinstance(term, Symbol): try: