Convert syntax highlighter spec.

This commit is contained in:
Simon Forman
2021-11-19 13:57:36 -08:00
parent 31c26cd235
commit 3f40e30c6f
12 changed files with 361 additions and 361 deletions
+4 -4
View File
@@ -1,4 +1,4 @@
.. code:: ipython2
.. code:: python
from notebook_preamble import J, V, define
@@ -81,13 +81,13 @@ the variables:
The three arguments are to the left, so we can “chop off” everything to
the right and say its the definition of the ``quadratic`` function:
.. code:: ipython2
.. code:: python
define('quadratic == over [[[neg] dupdip sqr 4] dipd * * - sqrt pm] dip 2 * [/] cons app2')
Lets try it out:
.. code:: ipython2
.. code:: python
J('3 1 1 quadratic')
@@ -102,7 +102,7 @@ lines are the ``dip`` and ``dipd`` combinators building the main program
by incorporating the values on the stack. Then that program runs and you
get the results. This is pretty typical of Joy code.
.. code:: ipython2
.. code:: python
V('-5 1 4 quadratic')