Rebuild docs with Python 3 and Sphinx 3.0.2.
This commit is contained in:
+35
-1
@@ -1,4 +1,3 @@
|
||||
|
||||
# The Blissful Elegance of Typing Joy
|
||||
|
||||
This notebook presents a simple type inferencer for Joy code. It can infer the stack effect of most Joy expressions. It's built largely by means of existing ideas and research. (A great overview of the existing knowledge is a talk ["Type Inference in Stack-Based Programming Languages"](http://prl.ccs.neu.edu/blog/2017/03/10/type-inference-in-stack-based-programming-languages/) given by Rob Kleffner on or about 2017-03-10 as part of a course on the history of programming languages.)
|
||||
@@ -1731,6 +1730,31 @@ print compile_('Q', Q)
|
||||
|
||||
|
||||
|
||||
```python
|
||||
|
||||
```
|
||||
|
||||
|
||||
```python
|
||||
|
||||
```
|
||||
|
||||
|
||||
```python
|
||||
|
||||
```
|
||||
|
||||
|
||||
```python
|
||||
|
||||
```
|
||||
|
||||
|
||||
```python
|
||||
|
||||
```
|
||||
|
||||
|
||||
```python
|
||||
unstack = (S[1], S[0]), S[1]
|
||||
enstacken = S[0], (S[0], S[1])
|
||||
@@ -1780,6 +1804,11 @@ C(cons, unstack)
|
||||
|
||||
|
||||
|
||||
|
||||
```python
|
||||
|
||||
```
|
||||
|
||||
## Part VI: Multiple Stack Effects
|
||||
...
|
||||
|
||||
@@ -2124,6 +2153,11 @@ def compose(f, g):
|
||||
```
|
||||
|
||||
|
||||
```python
|
||||
|
||||
```
|
||||
|
||||
|
||||
```python
|
||||
def meta_compose(F, G):
|
||||
for f, g in product(F, G):
|
||||
|
||||
Reference in New Issue
Block a user