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 6 (ECMA-262)
- Sensible syntax tree format as standardized by ESTree project
- Optional tracking of syntax node location (index-based and line-column)
- Heavily tested (~1250 unit tests with full code coverage)
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.