Permalink
Browse files

more details

  • Loading branch information...
1 parent 0e14ce6 commit b8a5241a573a40c06584bc710f0b5ff0f8c4d680 @maxtaco committed Dec 11, 2011
Showing with 842 additions and 77 deletions.
  1. +15 −5 TAME.md
  2. BIN media/detail.png
  3. +827 −72 media/rotate.graffle
View
20 TAME.md
@@ -311,24 +311,34 @@ while x3
<img src="/maxtaco/coffee-script/raw/master/media/rotate1.png" width=650 />
-* After Step 2.1, nodes in blue are marked with **A**.
+* After Step 2.1, nodes in blue are marked with **A**. Recall, Step 2.1 traces
+upwards from all `await` blocks.
<img src="/maxtaco/coffee-script/raw/master/media/rotate2.png" width=650 />
-* After Step 2.2, nodes in purple are marked with **L**.
+* After Step 2.2, nodes in purple are marked with **L**. Recall, Step 2.2 floods
+downwards from any any loops marked with **A**.
<img src="/maxtaco/coffee-script/raw/master/media/rotate3.png" width=650 />
-* After Step 2.3, nodes in yellow are marked with **P**
+* After Step 2.3, nodes in yellow are marked with **P**. Recall, Step 2.3
+traces upwards from any jumps marked with **L**.
<img src="/maxtaco/coffee-script/raw/master/media/rotate4.png" width=650 />
-* The green nodes are those marked with **A** or **P**.
+* The green nodes are those marked with **A** or **P**. They are "marked"
+for rotations in the next step.
<img src="/maxtaco/coffee-script/raw/master/media/rotate5.png" width=650 />
* In Step 3, rotate all marked nodes AST nodes. This rotation
-introduces the new yellow `block` nodes in the graph, and attaches
+introduces the new orange `block` nodes in the graph, and attaches
them to pivot nodes as _continuation_ blocks.
<img src="/maxtaco/coffee-script/raw/master/media/post-rotate.png" width=650 />
+
+* To focus on how pivots and continuations are actually output, we can look
+at this portion of the AST, introduced after Step 3:
+
+ ![detail](/maxtaco/coffee-script/raw/master/media/detail.png)
+
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.

0 comments on commit b8a5241

Please sign in to comment.