We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ee7aa6 commit 7d2e2d2Copy full SHA for 7d2e2d2
src/compiler/__tests__/__utils__/test-utils.ts
@@ -2,6 +2,7 @@ import { inspect } from "util";
2
import { Compiler } from "../../compiler";
3
import { BinaryWriter } from "../../binary-writer";
4
import { AST } from "../../../ast/types/packages-and-modules";
5
+import { javaPegGrammar } from "../../grammar"
6
import { execSync } from "child_process";
7
8
import * as peggy from "peggy";
@@ -15,7 +16,6 @@ export type testCase = {
15
16
17
const debug = false;
18
const pathToTestDir = "./src/compiler/__tests__/";
-const javaPegGrammar = fs.readFileSync('./src/compiler/main.pegjs', 'utf-8');
19
const parser = peggy.generate(javaPegGrammar, {
20
allowedStartRules: ["CompilationUnit"],
21
});
src/compiler/main.pegjs src/compiler/grammar.pegjssrc/compiler/main.pegjs renamed to src/compiler/grammar.pegjs
0 commit comments