Skip to content

Commit

Permalink
port JS/CC to nodejs
Browse files Browse the repository at this point in the history
  • Loading branch information
badlee committed May 17, 2011
1 parent 79e857e commit b9f5209
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
10 changes: 5 additions & 5 deletions README.md
Expand Up @@ -26,7 +26,7 @@ For all documentation read doc file in doc/
-i --version Print version and copyright -i --version Print version and copyright
-o --output <file> Save output source to <file> -o --output <file> Save output source to <file>
-p --prefix <prefix> Use <prefix> as sequence pre-fixing methods and variables -p --prefix <prefix> Use <prefix> as sequence pre-fixing methods and variables
-t --template <file> Use template file <file> as parser template by defalut driver_node.js_ -t --template <file> Use template file <file> as parser template (by defalut driver_node.js_ located in jscc.js folder)
-v --verbose Run in verbose mode -v --verbose Run in verbose mode
-w --warnings Print warnings -w --warnings Print warnings
-c --compress Compress output source using PACKER BASE62 -c --compress Compress output source using PACKER BASE62
Expand All @@ -38,8 +38,8 @@ For all documentation read doc file in doc/


For sample grammar see par/ folder. For sample grammar see par/ folder.
You will found: You will found:
- dragon.par : Port of my own language to javascript (port is partial) - dragon.par : Port of my own language to javascript (port in progress...)
- php.par : Grammar from phype project (port of php is partial) - php.par : Grammar from phype project (port of php in progress...)
- ruby.par : Grammar from phype project (port of ruby is partial) - ruby.par : Grammar from phype project (port of ruby in progress)
- calc.par : Calculator grammar from JS/CC sample - calc.par : Calculator grammar from JS/CC sample
- xpl.par : gramar for eXample Programming Language from JS/CC - xpl.par : Grammar for eXample Programming Language from JS/CC
14 changes: 6 additions & 8 deletions jscc.js
Expand Up @@ -4521,16 +4521,14 @@ function help()
help += " -h --help Print this usage help\n"; help += " -h --help Print this usage help\n";
help += " -i --version Print version and copyright\n"; help += " -i --version Print version and copyright\n";
help += " -o --output <file> Save output source to <file>\n"; help += " -o --output <file> Save output source to <file>\n";
help += " -p --prefix <prefix> Use <prefix> as sequence pre-\n"; help += " -p --prefix <prefix> Use <prefix> as sequence pre-fixing methods and variables\n";
help += " fixing methods and variables\n"; help += " -t --template <file> Use template file <file> as parser template\n";
help += " -t --template <file> Use template file <file> as\n";
help += " parser template\n";
help += " -v --verbose Run in verbose mode\n"; help += " -v --verbose Run in verbose mode\n";
help += " -w --warnings Print warnings\n"; help += " -w --warnings Print warnings\n";
help += " -c --compress Compress output source using BASE62\n"; help += " -c --compress Compress output source using PACKER BASE62\n";
help += " -s --shrink Shrink variables of output source\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 BASE62\n"; help += " -cs --compress-shrink Shrink variables of output source and Compress output source using PACKER BASE62\n";
help += " -m --minimize Minimize output source\n"; help += " -m --minimize Minimize output source using PACKER\n";


_print( help ); _print( help );
} }
Expand Down

0 comments on commit b9f5209

Please sign in to comment.