Short & sweet.
@ -13,7 +13,7 @@ MODULES = utils/arrays \
compiler/visitor \
compiler/asts \
compiler/opcodes \
compiler/javascript \
compiler/js \
compiler/passes/generate-bytecode \
compiler/passes/generate-javascript \
compiler/passes/remove-proxy-rules \
@ -3,7 +3,7 @@
function hex(ch) { return ch.charCodeAt(0).toString(16).toUpperCase(); }
/* JavaScript code generation helpers. */
var javascript = {
var js = {
stringEscape: function(s) {
/*
* ECMA-262, 5th ed., 7.8.4: All characters may appear literally in a string
@ -54,4 +54,4 @@ var javascript = {
}
};
module.exports = javascript;
module.exports = js;
@ -5,7 +5,7 @@ var arrays = require("../../utils/arrays"),
asts = require("../asts"),
visitor = require("../visitor"),
op = require("../opcodes"),
js = require("../javascript");
js = require("../js");
/* Generates bytecode.
*
var arrays = require("../../utils/arrays"),
/* Generates parser JavaScript code. */
function generateJavascript(ast, options) {
@ -21,7 +21,7 @@
"examples/json.pegjs",
"lib/compiler.js",
"lib/compiler/asts.js",
"lib/compiler/javascript.js",
"lib/compiler/js.js",
"lib/compiler/opcodes.js",
"lib/compiler/visitor.js",
"lib/compiler/passes/generate-bytecode.js",