Skip to content

zenparsing/esparse

Repository files navigation

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.

About

A Beautiful Parser for the ECMAScript Language

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published