项目原始demo,不改动
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

README.md 2.0 KiB

123456789101112131415161718192021222324252627
  1. [![NPM version](https://img.shields.io/npm/v/esprima.svg)](https://www.npmjs.com/package/esprima)
  2. [![npm download](https://img.shields.io/npm/dm/esprima.svg)](https://www.npmjs.com/package/esprima)
  3. [![Build Status](https://img.shields.io/travis/jquery/esprima/master.svg)](https://travis-ci.org/jquery/esprima)
  4. [![Coverage Status](https://img.shields.io/codecov/c/github/jquery/esprima/master.svg)](https://codecov.io/github/jquery/esprima)
  5. **Esprima** ([esprima.org](http://esprima.org), BSD license) is a high performance,
  6. standard-compliant [ECMAScript](http://www.ecma-international.org/publications/standards/Ecma-262.htm)
  7. parser written in ECMAScript (also popularly known as
  8. [JavaScript](https://en.wikipedia.org/wiki/JavaScript)).
  9. Esprima is created and maintained by [Ariya Hidayat](https://twitter.com/ariyahidayat),
  10. with the help of [many contributors](https://github.com/jquery/esprima/contributors).
  11. ### Features
  12. - Full support for ECMAScript 6 ([ECMA-262](http://www.ecma-international.org/publications/standards/Ecma-262.htm))
  13. - Sensible [syntax tree format](https://github.com/estree/estree/blob/master/spec.md) as standardized by [ESTree project](https://github.com/estree/estree)
  14. - Optional tracking of syntax node location (index-based and line-column)
  15. - [Heavily tested](http://esprima.org/test/ci.html) (~1250 [unit tests](https://github.com/jquery/esprima/tree/master/test/fixtures) with [full code coverage](https://codecov.io/github/jquery/esprima))
  16. Esprima serves as a **building block** for some JavaScript
  17. language tools, from [code instrumentation](http://esprima.org/demo/functiontrace.html)
  18. to [editor autocompletion](http://esprima.org/demo/autocomplete.html).
  19. Esprima runs on many popular web browsers, as well as other ECMAScript platforms such as
  20. [Rhino](http://www.mozilla.org/rhino), [Nashorn](http://openjdk.java.net/projects/nashorn/), and [Node.js](https://npmjs.org/package/esprima).
  21. For more information, check the web site [esprima.org](http://esprima.org).