Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

port JS/CC to nodejs

  • Loading branch information...
commit 6679d41aa6be950182afab0c0a90a96e700fa8d9 1 parent 5e78c4d
badlee authored
Showing with 10 additions and 7 deletions.
  1. +4 −4 README.md
  2. +6 −3 jscc.js
8 README.md
View
@@ -31,7 +31,7 @@ For all documentation read the `jscc_manual.pdf` in doc/
-w --warnings Print warnings
-c --compress Compress output source using PACKER BASE62
-s --shrink Shrink variables of output source using PACKER
- -cs --compress-shrink Shrink variables of output source and Compress output source using PACKER BASE62
+ -cs --compress-shrink Shrink variables of output source and Compress output source
-m --minimize Minimize output source using PACKER
## Examples
@@ -39,7 +39,7 @@ For all documentation read the `jscc_manual.pdf` in doc/
For sample grammar see par/ folder.
You will find:
- dragon.par : Port of my own language (port in progress...)
- - php.par : Grammar from phype project (port of php in progress...)
- - ruby.par : Grammar from 8ball project (port of ruby in progress)
+ - php.par : PHP grammar from phype project (port of php in progress...)
+ - ruby.par : Ruby grammar from 8ball project (port of ruby in progress...)
- calc.par : Calculator grammar from JS/CC sample
- - xpl.par : Grammar for eXample Programming Language from JS/CC
+ - xpl.par : Grammar for eXample Programming Language from JS/CC sample
9 jscc.js
View
@@ -28,7 +28,7 @@ of the Artistic License. Please see ARTISTIC for more information.
*/
//Program version info
-var JSCC_VERSION = "0.30";
+var JSCC_VERSION = "0.3.0";
//Symbol types
var SYM_NONTERM = 0;
@@ -4498,12 +4498,15 @@ function version()
{
var info = new String();
- info += "JS/CC v" + JSCC_VERSION + ": A LALR(1) Parser and Lexer " +
+ info += "\nJS/CC v" + JSCC_VERSION + ": A LALR(1) Parser and Lexer " +
"Generator written in JavaScript\n";
info += "Copyright (C) 2007, 2008 by J.M.K S.F. Software Technologies," +
"Jan Max Meyer\n";
info += "http://jscc.jmksf.com ++ jscc@jmksf.com\n\n";
+ info += "Ported by Badlee Oshimin ++ badlee.oshimin@gmail.com " +
+ "http://github.com/badlee/JSCC-NODE.\n\n";
+
info += "You may use, modify and distribute this software under the " +
"terms and conditions\n";
info += "of the Artistic License. Please see ARTISTIC for more " +
@@ -4527,7 +4530,7 @@ function help()
help += " -w --warnings Print warnings\n";
help += " -c --compress Compress output source using PACKER BASE62\n";
help += " -s --shrink Shrink variables of output source using PACKER\n";
- help += " -cs --compress-shrink Shrink variables of output source and Compress output source using PACKER BASE62\n";
+ help += " -cs --compress-shrink Shrink variables of output source and Compress output source\n";
help += " -m --minimize Minimize output source using PACKER\n";
_print( help );
Please sign in to comment.
Something went wrong with that request. Please try again.