Move compiler-related source files and tests into a subdirectory

redux
David Majda 12 years ago
parent 5bd2ca1cb5
commit f046e0a838

@ -133,12 +133,12 @@ benchmark: build
# Run JSHint on the source # Run JSHint on the source
hint: build hint: build
$(JSHINT) \ $(JSHINT) \
$(SRC_DIR)/*.js \ `find $(SRC_DIR) -name '*.js'` \
$(TEST_DIR)/*.js \ `find $(TEST_DIR) -name '*.js' -and -not -path '$(TEST_DIR)/vendor/*'` \
$(TEST_RUN) \ $(TEST_RUN) \
$(BENCHMARK_DIR)/*.js \ $(BENCHMARK_DIR)/*.js \
$(BENCHMARK_RUN) \ $(BENCHMARK_RUN) \
$(PEGJS) $(PEGJS)
.PHONY: test benchmark hint parser build clean dist distclean .PHONY: test benchmark hint parser build clean dist distclean

@ -32,5 +32,5 @@ PEG.compiler = {
} }
}; };
// @include "passes.js" // @include "compiler/passes.js"
// @include "emitter.js" // @include "compiler/emitter.js"

@ -8,8 +8,8 @@
<script src="vendor/qunit/qunit.js"></script> <script src="vendor/qunit/qunit.js"></script>
<script src="helpers.js"></script> <script src="helpers.js"></script>
<script src="parser-test.js"></script> <script src="parser-test.js"></script>
<script src="passes-test.js"></script>
<script src="compiler-test.js"></script> <script src="compiler-test.js"></script>
<script src="compiler/passes-test.js"></script>
</head> </head>
<body> <body>
<h1 id="qunit-header">PEG.js Test Suite</h1> <h1 id="qunit-header">PEG.js Test Suite</h1>

@ -76,8 +76,8 @@ QUnit.done(function(details) {
[ [
"helpers.js", "helpers.js",
"parser-test.js", "parser-test.js",
"passes-test.js",
"compiler-test.js", "compiler-test.js",
"compiler/passes-test.js"
].forEach(function(file) { ].forEach(function(file) {
eval("with (QUnit) {" + fs.readFileSync(__dirname + "/" + file, "utf8") + "}"); eval("with (QUnit) {" + fs.readFileSync(__dirname + "/" + file, "utf8") + "}");
}); });

Loading…
Cancel
Save