From d521acf9bdb2856959a849f029cb3f712fc336b5 Mon Sep 17 00:00:00 2001 From: multipleof4 Date: Fri, 26 Sep 2025 08:04:40 -0700 Subject: [PATCH] Refactor: Remove parser build step after Chevrotain migration --- test_runner.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/test_runner.js b/test_runner.js index c7c1dae..03920c8 100644 --- a/test_runner.js +++ b/test_runner.js @@ -1,6 +1,7 @@ import { readdirSync, readFileSync, writeFileSync } from 'fs'; import { join, basename } from 'path'; import { execSync } from 'child_process'; +import { hi2js } from './transpiler.js'; const testDir = 'test'; const srcDir = join(testDir, 'src'); @@ -60,17 +61,6 @@ function generateCrashReport(error, step) { async function run() { try { - // 1. Build Step - try { - console.log("Building parser from grammar, Master..."); - execSync('npm run build-parser'); - } catch (buildError) { - throw { step: 'Build Step', error: buildError.stderr || buildError.message }; - } - - // 2. Transpiler Import & Test Execution - const { hi2js } = await import('./transpiler.js'); - const testFiles = readdirSync(srcDir).filter(file => file.endsWith('.hi')); const results = [];