Minor revisions for grammar and punctuation.

This commit is contained in:
Daniel Norris 2016-06-16 18:27:37 -04:00
parent a44d3ff1e8
commit d94ebb8dd8

View File

@ -556,7 +556,7 @@ function parser(tokens) {
// (add 2 (subtract 4 2)) // (add 2 (subtract 4 2))
// //
// You'll also notice that in our tokens array we have multiple closing // You'll also notice that in our tokens array we have multiple closing
// parenthesis. // parentheses.
// //
// [ // [
// { type: 'paren', value: '(' }, // { type: 'paren', value: '(' },
@ -769,9 +769,10 @@ function transformer(ast) {
}; };
// Next I'm going to cheat a little and create a bit of a hack. We're going to // Next I'm going to cheat a little and create a bit of a hack. We're going to
// use a property named `context` on our parent nodes that we're going to push // use a property named `context` on our parent nodes that we're going to use
// nodes to their parent's `context`. Normally you would have a better // to push nodes to their parents' `context`'s. Normally you would have a
// abstraction than this, but for our purposes this keeps things simple. // better abstraction than this, but for our purposes this keeps things
// simple.
// //
// Just take note that the context is a reference *from* the old ast *to* the // Just take note that the context is a reference *from* the old ast *to* the
// new ast. // new ast.