Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
101 lines (80 sloc) 3.92 KB
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="assets/style.css"/>
<div class="container">
<div class="topbar">
<ul class="nav">
<li><a href="index.html">&larr; Home</a></li>
<li><a href="">Code</a></li>
<li><a href="">Documentation</a></li>
<li><a href="">Issues</a></li>
<h1>Esprima <small>ECMAScript parsing infrastructure for multipurpose analysis</small></h1>
<div class="main">
<p>Esprima (<a href=""></a>) is an educational
<a href="">ECMAScript</a>
(also popularly known as <a href="">JavaScript</a>)
parsing infrastructure for multipurpose analysis. It is also written in ECMAScript.</p>
<p>Esprima serves as a good basis for various tools such as coverage analyzer
(<a href="">node-cover</a> and
<a href="">coveraje</a>),
syntax formatter (<a href="">Code Painter</a>),
and code generator (<a href="">escodegen</a>).
<p>Esprima can be used in a web browser:</p>
<pre>&lt;script src="esprima.js"&gt;&lt;script&gt;</pre>
<p>or in a Node.js application via the package manager:</p>
<pre>npm install esprima</pre>
<p>Esprima parser output is compatible with Mozilla (SpiderMonkey)
<a href="">Parser API</a>.</p>
<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="">the wiki documentation</a>.</p>
<p>Since it is not comprehensive nor complete, refer to the
<a href="">issue tracker</a> for
<a href="">known problems</a>
and <a href="">future plans</a>.
Esprima is supported on <a href="">many browsers</a>:
IE 6+, Firefox 1+, Safari 3+, Chrome 1+, and Opera 8+.</p>
<p>Feedback and contribution are welcomed! Please join the
<a href="">mailing list</a> and read the
<a href="">contribution guide</a>
for further info.</p>
<div class="sidebar">
<h3>Useful demos</h3>
<li><a href="demo/parse.html">Code parser</a></li>
<li><a href="demo/precedence.html">Operator precedence</a></li>
<li><a href="demo/collector.html">Regex collector</a></li>
<li><a href="demo/functiontrace.html">Function tracing</a></li>
<li><a href="demo/rewrite.html">Source rewrite</a></li>
<h3>Harness tests</h3>
<li><a href="test/index.html">Unit tests</a></li>
<li><a href="test/compat.html">Compatibility tests</a></li>
<h3>Need for speed</h3>
<li><a href="test/benchmarks.html">Benchmarks suite</a></li>
<li><a href="test/compare.html">Speed comparison</a></li>
<br clear="all"/>
<div class="footer"><strong>Esprima</strong> is created by
<a href="" target="_blank">Ariya Hidayat</a>. Follow <a href="">@ariyahidayat</a> on Twitter.
<a href=""><img style="position: absolute; top: 0; right: 0; border: 0;" src="" alt="Fork me on GitHub"></a>