0.0.1 • Published 13 years ago
reflect-builder v0.0.1
This is the default builder used in reflect.js and is also used as a base for others, such as the tree builder. This builder is useful since the Reflect API doesn't let you change individual node behavior -- you must supply a whole new builder. This builder lets you change only the nodes you care about, leaving the rest as their default behavior.
Example:
var Reflect = require('reflect');
var builder = require('reflect-builder');
// [modificaitons to builder functions here]
var soure = "var a = b + c;";
var ast = Reflect.parse(source, {builder: builder});
Install
npm install reflect-builder
Node Properties
See the Mozilla docs.
License
MIT X License
0.0.1
13 years ago