esparse

0.6.11 • Public • Published

esparse

esparse is a parser for the ECMAScript programming language, written in JavaScript. Given a string representing a JavaScript program, it will output an abstract syntax tree representing that program.

Project Goals

The primary goal of this project is to implement an ECMAScript parser:

  • Whose source code is clear, easy to follow, and aesthetically pleasing.
  • That is easy to extend or modify for language experimentation purposes.
  • That provides an AST structure which is easy to traverse, easy to manipulate, and is convenient for a wide variety of code transformation use cases.
  • Whose performance is comparable to other modern ECMAScript parsers which are written in JavaScript.

AST compatibility with other parsers is not a project goal. However, it is expected that any future changes to the AST protocol will be backward compatible with previous versions.

Readme

Keywords

none

Package Sidebar

Install

npm i esparse

Weekly Downloads

31

Version

0.6.11

License

none

Unpacked Size

504 kB

Total Files

91

Last publish

Collaborators

  • zenparsing