a74bd12d6f1a3bedbe329a7981555762469942cd
[platform/framework/web/crosswalk-tizen.git] /
1 **Esprima** ([esprima.org](http://esprima.org)) is a high performance,
2 standard-compliant [ECMAScript](http://www.ecma-international.org/publications/standards/Ecma-262.htm)
3 parser written in ECMAScript (also popularly known as
4 [JavaScript](http://en.wikipedia.org/wiki/JavaScript>JavaScript)).
5 Esprima is created and maintained by [Ariya Hidayat](http://twitter.com/ariyahidayat),
6 with the help of [many contributors](https://github.com/ariya/esprima/contributors).
7
8 Esprima runs on web browsers (IE 6+, Firefox 1+, Safari 3+, Chrome 1+, Konqueror 4.6+, Opera 8+) as well as
9 [Node.js](http://nodejs.org).
10
11 ### Features
12
13 - Full support for [ECMAScript 5.1](http://www.ecma-international.org/publications/standards/Ecma-262.htm)(ECMA-262)
14 - Sensible [syntax tree format](http://esprima.org/doc/index.html#ast) compatible with Mozilla
15 [Parser AST](https://developer.mozilla.org/en/SpiderMonkey/Parser_API)
16 - Heavily tested (> 550 [unit tests](http://esprima.org/test/) with solid 100% statement coverage)
17 - Optional tracking of syntax node location (index-based and line-column)
18 - Experimental support for ES6/Harmony (module, class, destructuring, ...)
19
20 Esprima is blazing fast (see the [benchmark suite](http://esprima.org/test/benchmarks.html)).
21 It is up to 3x faster than UglifyJS v1 and it is still [competitive](http://esprima.org/test/compare.html)
22 with the new generation of fast parsers.
23
24 ### Applications
25
26 Esprima serves as the basis for many popular JavaScript development tools:
27
28 - Code coverage analysis: [node-cover](https://github.com/itay/node-cover), [Istanbul](https://github.com/yahoo/Istanbul)
29 - Documentation tool: [JFDoc](https://github.com/thejohnfreeman/jfdoc), [JSDuck](https://github.com/senchalabs/jsduck)
30 - Language extension: [LLJS](http://mbebenita.github.com/LLJS/) (low-level JS),
31 [Sweet.js](http://sweetjs.org/) (macro)
32 - ES6/Harmony transpiler: [Six](https://github.com/matthewrobb/six), [Harmonizr](https://github.com/jdiamond/harmonizr)
33 - Eclipse Orion smart editing ([outline view](https://github.com/aclement/esprima-outline), [content assist](http://contraptionsforprogramming.blogspot.com/2012/02/better-javascript-content-assist-in.html))
34 - Source code modification: [Esmorph](https://github.com/ariya/esmorph), [Code Painter](https://github.com/fawek/codepainter),
35 - Source transformation: [node-falafel](https://github.com/substack/node-falafel), [Esmangle](https://github.com/Constellation/esmangle), [escodegen](https://github.com/Constellation/escodegen)
36
37 ### Questions?
38 - [Documentation](http://esprima.org/doc)
39 - [Issue tracker](http://issues.esprima.org): [known problems](http://code.google.com/p/esprima/issues/list?q=Defect)
40 and [future plans](http://code.google.com/p/esprima/issues/list?q=Enhancement)
41 - [Mailing list](http://groups.google.com/group/esprima)
42 - [Contribution guide](http://esprima.org/doc/index.html#contribution)
43
44 Follow [@Esprima](http://twitter.com/Esprima) on Twitter to get the
45 development updates.
46 Feedback and contribution are welcomed!
47
48 ### License
49
50 Copyright (C) 2012, 2011 [Ariya Hidayat](http://ariya.ofilabs.com/about)
51  and other contributors.
52
53 Redistribution and use in source and binary forms, with or without
54 modification, are permitted provided that the following conditions are met:
55
56   * Redistributions of source code must retain the above copyright
57     notice, this list of conditions and the following disclaimer.
58
59   * Redistributions in binary form must reproduce the above copyright
60     notice, this list of conditions and the following disclaimer in the
61     documentation and/or other materials provided with the distribution.
62
63 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
64 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
65 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
66 ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
67 DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
68 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
69 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
70 ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
71 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
72 THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
73