Skip to content

Commit 0b277b4

Browse files
Implemented Nearley parsing
1 parent 148b56d commit 0b277b4

File tree

7 files changed

+1661
-4
lines changed

7 files changed

+1661
-4
lines changed

package-lock.json

Lines changed: 151 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@
44
"description": "",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",
7+
"type": "module",
78
"scripts": {
89
"regen": "npm run build && node dist/generate.js",
10+
"compile-grammar": "nearleyc src/nearley/python.ne -o src/nearley/python-grammar.ts",
911
"start:dev": "npx nodemon",
1012
"build": "rollup -c --bundleConfigAsCjs",
1113
"start": "npm run build && node dist/index.js",
@@ -31,11 +33,16 @@
3133
"@types/fast-levenshtein": "^0.0.4",
3234
"@types/jest": "^29.4.0",
3335
"@types/mathjs": "^9.4.1",
36+
"@types/moo": "^0.5.10",
37+
"@types/nearley": "^2.11.5",
3438
"@types/node": "^18.19.84",
3539
"glob": "^11.0.1",
3640
"jest": "^29.7.0",
3741
"jsdoc": "^4.0.4",
42+
"moo": "^0.5.2",
43+
"nearley": "^2.20.1",
3844
"nodemon": "^3.1.10",
45+
"peggy": "^5.0.6",
3946
"rimraf": "^3.0.2",
4047
"rollup": "^4.38.0",
4148
"rollup-plugin-modify": "^3.0.0",

0 commit comments

Comments
 (0)