reflect-builder

0.0.1 • Public • Published

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});

Node Properties

See the Mozilla docs.

License

MIT X License

/reflect-builder/

    Package Sidebar

    Install

    npm i reflect-builder

    Weekly Downloads

    3

    Version

    0.0.1

    License

    none

    Last publish

    Collaborators

    • zaach