Skip to content
Browse files

Initial commit

  • Loading branch information...
0 parents commit a80480b5ab3fbb3757df4ab42670f9720f53fb2b @dhconnelly committed Dec 5, 2012
Showing with 84 additions and 0 deletions.
  1. +23 −0 LICENSE
  2. +27 −0 README.md
  3. +20 −0 package.json
  4. +8 −0 prettybnf.js
  5. +6 −0 test_prettybnf.js
23 LICENSE
@@ -0,0 +1,23 @@
+Copyright (c) 2012, Daniel Connelly
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 README.md
@@ -0,0 +1,27 @@
+prettybnf
+=========
+
+a JavaScript library for parsing BNF grammars
+
+About
+-----
+
+Getting Started
+---------------
+
+Usage
+-----
+
+Contributing
+------------
+
+Author
+------
+
+prettybnf is written and maintained by Daniel Connelly. You can find my stuff
+at dhconnelly.com or email me at dhconnelly@gmail.com.
+
+License
+-------
+
+Released under the 2-clause BSD license; see LICENSE for more details.
20 package.json
@@ -0,0 +1,20 @@
+{
+ "name": "prettybnf",
+ "version": "0.0.0",
+ "description": "a JavaScript library for parsing BNF grammars",
+ "main": "prettybnf.js",
+ "scripts": {
+ "test": "nodeunit test_prettybnf.js"
+ },
+ "repository": {
+ "type": "git",
+ "url": "git://github.com/dhconnelly/prettybnf.git"
+ },
+ "keywords": [ "bnf", "parser", "grammar" ],
+ "author": "Daniel Connelly <dhconnelly@gmail.com> (http://dhconnelly.com)",
+ "license": "BSD",
+ "readmeFilename": "README.md",
+ "devDependencies": {
+ "nodeunit": "0.7.x"
+ }
+}
8 prettybnf.js
@@ -0,0 +1,8 @@
+(function (exports) {
+'use strict';
+
+exports.version = '0.0.0';
+exports.parse = function (g) {};
+exports.stringify = function (ast) {};
+
+}(typeof exports === 'undefined' ? this.prettybnf = {} : exports));
6 test_prettybnf.js
@@ -0,0 +1,6 @@
+var prettybnf = require('./prettybnf');
+
+exports.testVersion = function (t) {
+ t.equal(prettybnf.version, '0.0.0');
+ t.done();
+};

0 comments on commit a80480b

Please sign in to comment.
Something went wrong with that request. Please try again.