Fix typo in hyperlink in README.

This commit is contained in:
Simon Forman 2022-09-19 19:43:34 -07:00
parent fab172daf4
commit 36a9967e6c
2 changed files with 5 additions and 4 deletions

View File

@ -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 available functions of the Joy system. Together the stack, expression, and dictionary
are the entire state of the Joy interpreter. are the entire state of the Joy interpreter.
### Interpreter
![joy_interpreter_flowchart.svg](/joy_interpreter_flowchart.svg) ![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. > them being pushed onto the stack. But I also call [London Paris] a list.
> So, [dup *] is a quotation but not 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)

View File

@ -307,9 +307,9 @@ def joy(stack, expression, dictionary):
''' '''
expr = push_quote(expression) # We keep a stack-of-stacks, see below. expr = push_quote(expression) # We keep a stack-of-stacks, see below.
while expr: while expr:
## print( print(
## f'{stack_to_string(stack)} • {expr_to_string(expr)}' f'{stack_to_string(stack)}{expr_to_string(expr)}'
## ) )
term, expr = next_term(expr) term, expr = next_term(expr)
if isinstance(term, Symbol): if isinstance(term, Symbol):
try: try: