Feat: Add nearley and moo for AST parsing

This commit is contained in:
2025-09-26 01:41:36 -07:00
parent f36fa53031
commit 78853de006

View File

@@ -7,6 +7,11 @@
"hi2js": "./cli.js" "hi2js": "./cli.js"
}, },
"scripts": { "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"
} }
} }