ordered-ast-traverse
simple but flexible lexically ordered AST traversal with pre and post visitors
Last updated 12 years ago by olov .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install ordered-ast-traverse 
SYNC missed versions from official npm registry.

ordered-ast-traverse.js

Simple but flexible lexically ordered AST traversal with pre and post visitors.

Same as ast-traverse but instead of visiting everything that looks like an AST node, nodes are visited according to ordered-esprima-props.

The result is that the AST traversal happens in lexical order, i.e. an AST-traversal in this order will visit nodes in increasing source code position. It works with any Mozilla Parser API compatible AST, including those generated by Esprima and Acorn, see https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Parser_API

Usage and examples

See ast-traverse README

License

MIT, see LICENSE file.

Current Tags

  • 1.1.1                                ...           latest (12 years ago)

5 Versions

  • 1.1.1                                ...           12 years ago
  • 1.1.0                                ...           12 years ago
  • 1.0.0                                ...           12 years ago
  • 0.1.1                                ...           13 years ago
  • 0.1.0                                ...           13 years ago
Maintainers (1)
Downloads
Total 19
Today 0
This Week 0
This Month 15
Last Day 0
Last Week 8
Last Month 0
Dependencies (1)
Dev Dependencies (0)
None
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE