|
@@ -1,5 +1,6 @@
|
|
"use strict";
|
|
"use strict";
|
|
|
|
|
|
|
|
+var grammar = require("eberon/eberon_grammar.js").grammar;
|
|
var nodejs = require("nodejs.js");
|
|
var nodejs = require("nodejs.js");
|
|
|
|
|
|
function main(){
|
|
function main(){
|
|
@@ -11,7 +12,7 @@ function main(){
|
|
var outDir = process.argv[2];
|
|
var outDir = process.argv[2];
|
|
var sources = process.argv.slice(3);
|
|
var sources = process.argv.slice(3);
|
|
var errors = "";
|
|
var errors = "";
|
|
- nodejs.compile(sources, function(e){errors += e;}, outDir);
|
|
|
|
|
|
+ nodejs.compile(sources, grammar, function(e){errors += e;}, outDir);
|
|
if (errors.length){
|
|
if (errors.length){
|
|
console.error(errors);
|
|
console.error(errors);
|
|
return -2;
|
|
return -2;
|