From 0264efdda63248b498895173176520139fe4db70 Mon Sep 17 00:00:00 2001 From: Simon Forman Date: Fri, 8 Jun 2018 13:17:36 -0700 Subject: [PATCH] Rebuild html. --- docs/Replacing.html | 3 +- docs/Replacing.ipynb | 3 +- docs/Replacing.md | 1 + docs/Replacing.rst | 8 + .../_build/html/notebooks/NoUpdates.html | 4 +- docs/sphinx_docs/_build/html/objects.inv | Bin 1342 -> 1282 bytes docs/sphinx_docs/_build/html/searchindex.js | 2 +- docs/sphinx_docs/notebooks/Replacing.rst | 8 + docs/sphinx_docs/notebooks/Trees.rst | 1898 ----------------- 9 files changed, 24 insertions(+), 1903 deletions(-) delete mode 100644 docs/sphinx_docs/notebooks/Trees.rst diff --git a/docs/Replacing.html b/docs/Replacing.html index 657674b..3bdad9b 100644 --- a/docs/Replacing.html +++ b/docs/Replacing.html @@ -11775,7 +11775,8 @@ div#notebook {
-

Replacing Functions in the Dictionary

+

Replacing Functions in the Dictionary

For now, there is no way to define new functions from within the Joy language. All functions (and the interpreter) all accept and return a dictionary parameter (in addition to the stack and expression) so that we can implement e.g. a function that adds new functions to the dictionary. However, there's no function that does that. Adding a new function to the dictionary is a meta-interpreter action, you have to do it in Python, not Joy.

+
diff --git a/docs/Replacing.ipynb b/docs/Replacing.ipynb index fc1b436..090636d 100644 --- a/docs/Replacing.ipynb +++ b/docs/Replacing.ipynb @@ -4,7 +4,8 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "# Replacing Functions in the Dictionary" + "# Replacing Functions in the Dictionary\n", + "For now, there is no way to define new functions from within the Joy language. All functions (and the interpreter) all accept and return a dictionary parameter (in addition to the stack and expression) so that we can implement e.g. a function that adds new functions to the dictionary. However, there's no function that does that. Adding a new function to the dictionary is a meta-interpreter action, you have to do it in Python, not Joy." ] }, { diff --git a/docs/Replacing.md b/docs/Replacing.md index aa7eabe..32bf9eb 100644 --- a/docs/Replacing.md +++ b/docs/Replacing.md @@ -1,5 +1,6 @@ # Replacing Functions in the Dictionary +For now, there is no way to define new functions from within the Joy language. All functions (and the interpreter) all accept and return a dictionary parameter (in addition to the stack and expression) so that we can implement e.g. a function that adds new functions to the dictionary. However, there's no function that does that. Adding a new function to the dictionary is a meta-interpreter action, you have to do it in Python, not Joy. ```python diff --git a/docs/Replacing.rst b/docs/Replacing.rst index 5ed8d14..966431f 100644 --- a/docs/Replacing.rst +++ b/docs/Replacing.rst @@ -2,6 +2,14 @@ Replacing Functions in the Dictionary ===================================== +For now, there is no way to define new functions from within the Joy +language. All functions (and the interpreter) all accept and return a +dictionary parameter (in addition to the stack and expression) so that +we can implement e.g. a function that adds new functions to the +dictionary. However, there's no function that does that. Adding a new +function to the dictionary is a meta-interpreter action, you have to do +it in Python, not Joy. + .. code:: ipython2 from notebook_preamble import D, J, V diff --git a/docs/sphinx_docs/_build/html/notebooks/NoUpdates.html b/docs/sphinx_docs/_build/html/notebooks/NoUpdates.html index dddc748..9b4f30e 100644 --- a/docs/sphinx_docs/_build/html/notebooks/NoUpdates.html +++ b/docs/sphinx_docs/_build/html/notebooks/NoUpdates.html @@ -17,7 +17,7 @@ - + @@ -67,7 +67,7 @@