Permalink
Browse files

Merge pull request #4 from irvingc/binifying

Binifying
  • Loading branch information...
2 parents d9b8648 + d677cd2 commit e4345fc96b67dd52d5b5c45779afad8cb95dc3f4 @badlee committed Sep 16, 2012
Showing 474 changed files with 18 additions and 211,151 deletions.
View
@@ -0,0 +1,2 @@
+node_modules/
+npm-debug.log
View
@@ -16,9 +16,15 @@ To use JS/CC and for understanding its internals and behaviors, some knowledge o
For all documentation read the `jscc_manual.pdf` in doc/ folder.
+## Installation
+
+ npm install jscc-node
+
+This install a jscc binary inside your node path, that you can run from the shell
+
## HOW TO USE
- node jscc.js [options] filename
+ jscc [options] filename
## OPTIONS
View
@@ -1,5 +1,6 @@
+#!/usr/bin/env node
print = require("util").puts;
-_print = function(str){console.log("__PRINT__\n"+str);};
+_print = function(str){console.log(str);};
_error = function(str){console.log("___ ERROR ___\n"+str);};
_warning = function(str){console.log("--- WARN ---\n"+str);};
alert = function(str){console.log("=== ALERT ===\n"+str);};
@@ -4541,7 +4542,7 @@ function help()
//Initialize the globals
reset_all( EXEC_CONSOLE );
-DEFAULT_DRIVER = "driver_node.js_";
+DEFAULT_DRIVER = __dirname + "/../lib/driver_node.js_";
//Processing the command line arguments
@@ -4634,8 +4635,8 @@ if( src_file != "" )
//LALR(1) parse table generation
first();
- print_symbols( MODE_GEN_TEXT );
- print_grammar( MODE_GEN_TEXT );
+ //print_symbols( MODE_GEN_TEXT );
+ //print_grammar( MODE_GEN_TEXT );
lalr1_parse_table( false );
check_empty_states();
View
@@ -1,3 +0,0 @@
-cd existing_git_repo
-git commit -a -m 'port JS/CC to nodejs'
-git push -u origin master
File renamed without changes.
View
BIN node
Binary file not shown.
Binary file not shown.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit e4345fc

Please sign in to comment.