Esprima (esprima.org, BSD license) is a high performance, standard-compliant ECMAScript parser written in ECMAScript (also popularly known as JavaScript. Esprima is created and maintained by Ariya Hidayat, with the help of many contributors.
- Full support for ECMAScript 5.1 (ECMA-262)
- Sensible syntax tree format as standardized by EStree project
- Optional tracking of syntax node location (index-based and line-column)
- Heavily tested (~1100 unit tests with full code coverage)
- Partial support for ECMAScript 6
Esprima serves as a building block for some JavaScript language tools, from code instrumentation to editor autocompletion.
Esprima runs on many popular web browsers, as well as other ECMAScript platforms such as Rhino, Nashorn, and Node.js.
For more information, check the web site esprima.org.