pybricksMicropython/lib: replace parser

This replaces the Python parsing library. The python-ast package has
really poor performance (many seconds to parse a 500 line file). The
new package can parse a file about 100 times faster.
This commit is contained in:
David Lechner
2022-10-24 15:21:52 -05:00
parent a673a45b03
commit 0e2a0f909a
6 changed files with 40 additions and 159 deletions
+1 -4
View File
@@ -18,6 +18,7 @@
"@pybricks/jedi": "^1.2.0",
"@pybricks/mpy-cross-v5": "^2.0.0",
"@pybricks/mpy-cross-v6": "^2.0.0",
"@qoretechnologies/python-parser": "^0.4.10",
"@reduxjs/toolkit": "^1.8.6",
"@shopify/react-i18n": "^7.2.4",
"@svgr/webpack": "^6.5.0",
@@ -38,7 +39,6 @@
"@types/web-locks-api": "^0.0.2",
"@types/wicg-file-system-access": "^2020.9.5",
"@types/zen-push": "^0.1.1",
"assert": "^2.0.0",
"babel-jest": "^29.2.1",
"babel-loader": "^8.2.3",
"babel-plugin-macros": "^3.0.1",
@@ -86,7 +86,6 @@
"prompts": "^2.4.2",
"prop-types": "^15.8.1",
"pyodide": "0.21.3",
"python-ast": "^0.1.0",
"react": "^16.13.1",
"react-app-polyfill": "^3.0.0",
"react-aria": "^3.20.0",
@@ -118,7 +117,6 @@
"typescript": "~4.8.4",
"usehooks-ts": "^2.9.1",
"user-agent-data-types": "^0.3.0",
"util": "^0.12.5",
"web-vitals": "^3.0.4",
"webpack": "^5.74.0",
"webpack-dev-server": "^4.11.1",
@@ -169,7 +167,6 @@
},
"packageManager": "yarn@3.2.0",
"resolutions": {
"antlr4ts@^0.5.0-alpha.3": "0.5.0-alpha.4",
"mq-polyfill@1.1.8": "patch:mq-polyfill@npm:1.1.8#.yarn/patches/mq-polyfill-npm-1.1.8-62fe162439.patch",
"react-error-overlay": "6.0.9",
"react-dev-utils@^12.0.1": "patch:react-dev-utils@npm:12.0.1#.yarn/patches/react-dev-utils-npm-12.0.1-83ba06e3ee.patch",