Skip to content
zenparsingPublic

About

A Beautiful Parser for the ECMAScript Language

Resources

Stars

115 stars

Watchers

7 watching

Forks

Latest commit

 

History

383 Commits

Folders and files

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

Stars

115 stars

Watchers

7 watching

Forks

Releases

Packages

Used by

Contributors

Languages