Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
  
<script src="http://esprima.org/esprima.js"></script>
<script src="http://constellation.github.io/escodegen/escodegen.browser.js"></script>
<script src="https://rawgithub.com/Constellation/estraverse/master/estraverse.js"></script>
</body>
</html>
  
 
// Node.js Environment
var code = 'function jqcon() { }',
  ast = esprima.parse(code),
  // Returns a string of code represented by the AST
  regenerated_code = escodegen.generate(ast);
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
gfrankopro
0viewers