Rebuild docs with Python 3 and Sphinx 3.0.2.

This commit is contained in:
Simon Forman
2020-04-28 15:37:49 -07:00
parent 176e427116
commit 7f6fcf6e09
150 changed files with 51415 additions and 41305 deletions
+45 -2
View File
@@ -1,5 +1,3 @@
```python
from notebook_preamble import D, J, V, define
```
@@ -418,6 +416,11 @@ V('[a b c d] 1 2 [f] Ee')
[a 1 c d] .
```python
```
## Working with Yang Functions
Consider the compiled code of `dup`:
@@ -457,6 +460,16 @@ def sqr(stack):
```
```python
```
```python
```
How about...
@@ -491,6 +504,11 @@ def foo(stack):
```
```python
```
```python
stack_effects = infer_string('tuck')
for fi, fo in stack_effects:
@@ -500,6 +518,11 @@ for fi, fo in stack_effects:
(a2 a1 -- a1 a2 a1)
```python
```
## Compiling Yin~Yang Functions
First, we need a source of Python identifiers. I'm going to reuse `Symbol` class for this.
@@ -722,3 +745,23 @@ print compile_yinyang('to_the_fifth_power', e)
return stack
```python
```
```python
```
```python
```
```python
```