|
|
|
@ -1,14 +1,14 @@
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
|
var arrays = require("./utils/arrays"),
|
|
|
|
|
objects = require("./utils/objects");
|
|
|
|
|
var arrays = require("../utils/arrays"),
|
|
|
|
|
objects = require("../utils/objects");
|
|
|
|
|
|
|
|
|
|
var compiler = {
|
|
|
|
|
/*
|
|
|
|
|
* AST node visitor builder. Useful mainly for plugins which manipulate the
|
|
|
|
|
* AST.
|
|
|
|
|
*/
|
|
|
|
|
visitor: require("./compiler/visitor"),
|
|
|
|
|
visitor: require("./visitor"),
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Compiler passes.
|
|
|
|
@ -19,16 +19,16 @@ var compiler = {
|
|
|
|
|
*/
|
|
|
|
|
passes: {
|
|
|
|
|
check: {
|
|
|
|
|
reportMissingRules: require("./compiler/passes/report-missing-rules"),
|
|
|
|
|
reportLeftRecursion: require("./compiler/passes/report-left-recursion"),
|
|
|
|
|
reportInfiniteLoops: require("./compiler/passes/report-infinite-loops")
|
|
|
|
|
reportMissingRules: require("./passes/report-missing-rules"),
|
|
|
|
|
reportLeftRecursion: require("./passes/report-left-recursion"),
|
|
|
|
|
reportInfiniteLoops: require("./passes/report-infinite-loops")
|
|
|
|
|
},
|
|
|
|
|
transform: {
|
|
|
|
|
removeProxyRules: require("./compiler/passes/remove-proxy-rules")
|
|
|
|
|
removeProxyRules: require("./passes/remove-proxy-rules")
|
|
|
|
|
},
|
|
|
|
|
generate: {
|
|
|
|
|
generateBytecode: require("./compiler/passes/generate-bytecode"),
|
|
|
|
|
generateJS: require("./compiler/passes/generate-js")
|
|
|
|
|
generateBytecode: require("./passes/generate-bytecode"),
|
|
|
|
|
generateJS: require("./passes/generate-js")
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|