forked from jquery/esprima
-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
70 lines (54 loc) · 2.52 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Esprima</title>
<link rel="stylesheet" type="text/css" href="assets/style.css"/>
</head>
<body>
<div class="container">
<h1>Esprima <small>ECMAScript parsing infrastructure for multipurpose analysis</small></h1>
<div class="main">
<p>Esprima (<a href="http://esprima.org">esprima.org</a>) is an experimental ECMAScript
(also popularly known as JavaScript) parsing infrastructure for multipurpose
analysis. It is also written in ECMAScript.</p>
<p>Esprima can be used in a web browser:</p>
<pre><script src="esprima.js"><script></pre>
<p>or in a Node.js application via the package manager:</p>
<pre>npm install esprima</pre>
<p>A very simple example:</p>
<pre>esprima.parse('var answer=42').body[0].declarations[0].init</pre>
<p>produces the following object:</p>
<pre>{ type: 'Literal', value: 42 }</pre>
<p>Esprima is still in the development, for now please check
<a href="http://wiki.esprima.org">the wiki documentation</a>.</p>
<p>Since it is not comprehensive nor complete, refer to the
<a href="http://issues.esprima.org">issue tracker</a> for
<a href="http://code.google.com/p/esprima/issues/list?q=Defect">known problems</a>
and <a href="http://code.google.com/p/esprima/issues/list?q=Enhancement">future plans</a>.</p>
<p>Feedback and contribution are welcomed! Please join the
<a href="http://groups.google.com/group/esprima">mailing list</a> and read the
<a href="http://code.google.com/p/esprima/wiki/ContributionGuide">contribution guide</a>
for further info.</p>
</div>
<div class="sidebar">
<h3>Useful demos</h3>
<ul>
<li><a href="demo/parse.html">Code parser</a></li>
<li><a href="test/benchmarks.html">Benchmarks suite</a></li>
<li><a href="test/compare.html">Speed comparison</a></li>
</ul>
<h3>Harness tests</h3>
<ul>
<li><a href="test/index.html">Unit tests</a></li>
<li><a href="test/compat.html">Compatibility tests</a></li>
</ul>
</div>
<br clear="all"/>
<div class="footer"><strong>Esprima</strong> is created by
<a href="http://ariya.ofilabs.com">Ariya Hidayat</a>. Follow <a href="http://twitter.com/ariyahidayat">@ariyahidayat</a> on Twitter.
</div>
</div>
<a href="http://github.com/ariya/esprima"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://a248.e.akamai.net/assets.github.com/img/e6bef7a091f5f3138b8cd40bc3e114258dd68ddf/687474703a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f7265645f6161303030302e706e67" alt="Fork me on GitHub"></a>
</body>
</html>