Skip to content
Browse files

docs

  • Loading branch information...
1 parent 731c477 commit 7a22a2f6c1675adfb3ab282dee7ee43ba22060f7 @maxtaco committed Dec 8, 2011
Showing with 23 additions and 4 deletions.
  1. +19 −0 TAME.md
  2. +4 −4 TODO-tame.md
View
19 TAME.md
@@ -95,3 +95,22 @@ do_all = (lst) ->
```
+Tranlsation Technique
+---------------------
+
+The CoffeeScript tame addition uses a simlar continuation-passing
+translation to *tamejs*, but it's been refined greatly. Here are
+the general steps involved:
+
+1. Run the standard CoffeeScript lexer, rewriter, and parser, with a
+few small additions (for `await` and `defer`), yielding
+a standard CoffeeScript-style abstract syntax tree (AST).
+
+1. Apply *tame annotations*:
+
+1. Output preamble/boilerplate
+
+1. Rotate the AST
+
+1. Compile as normal
+
View
8 TODO-tame.md
@@ -1,6 +1,6 @@
-Todos to get Tame Running
-=========================
-
- * `await` returns a value
+Todos
+=====
+ * `await` returns a value?
* continuations must therefore return a value
* tamed `for`, `while` and others return a value
+ * splats in defer

0 comments on commit 7a22a2f

Please sign in to comment.
Something went wrong with that request. Please try again.