From 78853de006036c2fff604b42bfeb876dfa15af93 Mon Sep 17 00:00:00 2001 From: multipleof4 Date: Fri, 26 Sep 2025 01:41:36 -0700 Subject: [PATCH] Feat: Add nearley and moo for AST parsing --- package.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index c3a4e4f..e28b512 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,11 @@ "hi2js": "./cli.js" }, "scripts": { - "test": "node test_runner.js" + "build-parser": "nearleyc grammar.ne -o grammar.js", + "test": "npm run build-parser && node test_runner.js" + }, + "dependencies": { + "moo": "^0.5.2", + "nearley": "^2.20.1" } }