diff --git a/the-super-tiny-compiler.js b/the-super-tiny-compiler.js index c57f1ac..411fa54 100755 --- a/the-super-tiny-compiler.js +++ b/the-super-tiny-compiler.js @@ -709,16 +709,31 @@ function parser(tokens) { * encounter a node with a matching type. * * traverse(ast, { - * Program(node, parent) { - * // ... + * Program: { + * enter(node, parent) { + * // ... + * }, + * exit(node, parent) { + * // ... + * }, * }, * - * CallExpression(node, parent) { - * // ... + * CallExpression: { + * enter(node, parent) { + * // ... + * }, + * exit(node, parent) { + * // ... + * }, * }, * - * NumberLiteral(node, parent) { - * // ... + * NumberLiteral: { + * enter(node, parent) { + * // ... + * }, + * exit(node, parent) { + * // ... + * }, * }, * }); */