[Pkg-javascript-commits] [node-acorn-jsx] 06/484: Add temp index page

Bastien Roucariès rouca at moszumanska.debian.org
Sat Aug 19 14:19:56 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-acorn-jsx.

commit 56b7db4e9629868b3cf32cfaf102152783d612d8
Author: Marijn Haverbeke <marijnh at gmail.com>
Date:   Mon Sep 24 12:03:23 2012 +0200

    Add temp index page
---
 acorn.js   |  2 +-
 index.html | 31 +++++++++++++++++++++++++++++++
 2 files changed, 32 insertions(+), 1 deletion(-)

diff --git a/acorn.js b/acorn.js
index 1ae8c6b..878ea36 100644
--- a/acorn.js
+++ b/acorn.js
@@ -15,7 +15,7 @@
 
   // PARSER
 
-  var defaultOptions = {
+  var defaultOptions = exports.defaultOptions = {
     ecmaVersion: 5,
     strictSemicolons: false,
     allowTrailingCommas: true,
diff --git a/index.html b/index.html
new file mode 100644
index 0000000..8447e9f
--- /dev/null
+++ b/index.html
@@ -0,0 +1,31 @@
+<!doctype html>
+<head>
+  <meta charset="utf-8">
+  <title>Acorn</title>
+  <style>
+    body { max-width: 55em; margin-left: 2em; font-family: arial; }
+  </style>
+</head>
+
+<h1>Acorn</h1>
+
+<p>(This is a temporary placeholder project page. Better is to come in
+the future.)</p>
+
+<p>Acorn is a tiny, fast JavaScript parser written in JavaScript. If
+defines <code>acorn.parse</code>, which, when given a string and an
+optional options argument, will spit out an abstract syntax tree.</p>
+
+<p>The output conforms largely to
+the <a href="https://developer.mozilla.org/en-US/docs/SpiderMonkey/Parser_API">Mozilla
+parser API</a> with the caveat that non-ECMAscript features
+(<code>let</code>, <code>yield</code>, inline XML, etc) are not
+supported, and that node <code>start</code>/<code>end</code>
+information is attached directly to the nodes themselves, rather than
+wrapped in another object and attached as a <code>loc</code> property.</p>
+
+<p>See <code>acorn.defaultOptions</code> for the kind of options that
+the parser supports.</p>
+
+<p>Get the code and report bugs on
+the <a href="https://github.com/marijnh/acorn">Github page</a>.</p>

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-acorn-jsx.git



More information about the Pkg-javascript-commits mailing list