calyptus / ast-js

Provides an Abstract Syntax Tree (AST) to generate ECMAScript code.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AST.js

Provides an Abstract Syntax Tree (AST) to generate ECMAScript code.

TODO:

  • Add parentheses around expressions when necessary
  • Nice indented formatting with options
  • Rename invalid or scope colliding variable names
  • Escape dangerous characters in regular expression literals
  • Statements: for, while, do, switch, with, delete, typeof, instanceof
  • Comments
  • Lexical parser

About

Provides an Abstract Syntax Tree (AST) to generate ECMAScript code.

License:MIT License