Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
75 lines (60 sloc) 1.97 KB
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<title>Esprima: Syntax Validator</title>
<script src="../test/3rdparty/platform.js"></script>
<script src="checkenv.js"></script>
<script src="../esprima.js"></script>
<script src="../assets/codemirror/codemirror.js"></script>
<script src="../assets/codemirror/javascript.js"></script>
<link rel="stylesheet" type="text/css" href="../assets/codemirror/codemirror.css"/>
<link rel="stylesheet" type="text/css" href="../assets/style.css"/>
table th, table td {
text-align: left;
background-color: white;
tbody tr:nth-child(odd) td {
background-color: white;
tbody td {
background-color: white;
<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="../doc/index.html">Documentation</a></li>
<li><a href="">Issues</a></li>
<h1>Syntax Validator <small>checks for mistakes and errors</small></h1>
<p>Esprima version <span id="version"></span>.</p>
<p>Type ECMAScript code:</p>
<p><textarea id="code" autofocus="autofocus" cols="70" rows="15" spellcheck="false">
return 42; // Return statement not inside a function
function f() {
'use strict';
// No more octal
var x = 042;
// Duplicate property
var y = { x: 1, x: 2 };
// With statement can't be used
with (z) {}
<p id="codemirror" align="right"><small>The above code editor is based on <a href="" target="_blank">CodeMirror</a>.</small></p>
<div id="result"><p>No result yet.</p></div>
<div class="footer"><strong>Esprima</strong> is created by
<a href="" target="_blank">Ariya Hidayat</a>. Follow <a href="">@ariyahidayat</a> on Twitter.
<p id="testbox"><textarea id="test"></textarea></p>
<script src="validate.js"></script>
Something went wrong with that request. Please try again.