Skip to content

Commit

Permalink
Update the-super-tiny-compiler.js (jamiebuilds#51)
Browse files Browse the repository at this point in the history
Made some modifications to make the newly-added text fit into existing paragraphs.
  • Loading branch information
G. Kay Lee authored and jamiebuilds committed Jan 4, 2017
1 parent a7f5020 commit dee8b92
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions the-super-tiny-compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,8 @@
* CallExpression() {},
* };
*
* When we traverse our AST we will call the methods on this visitor whenever we
* encounter a node of a matching type.
* When we traverse our AST, we will call the methods on this visitor whenever we
* "enter" a node of a matching type.
*
* In order to make this useful we will also pass the node and a reference to
* the parent node.
Expand All @@ -286,10 +286,8 @@
* CallExpression(node, parent) {},
* };
*
* We call these functions when we "enter" the node. But there is also the
* possibilty of calling things on "exit".
*
* Imagine our tree structure from before in list form:
* However, there also exists the possibilty of calling things on "exit". Imagine
* our tree structure from before in list form:
*
* - Program
* - CallExpression
Expand All @@ -315,7 +313,7 @@
* <- CallExpression (exit)
* <- Program (exit)
*
* In order to supper that, our visitors will look like this:
* In order to support that, the final form of our visitor will look like this:
*
* var visitor = {
* NumberLiteral: {
Expand Down

0 comments on commit dee8b92

Please sign in to comment.