3 ms·
You can use just the parser if you want to: https://rustpython.github.io/blog/2020/04/02/thing-explainer-parser.html https://rustpython.github.io/blog/2020/04/0
by klaussilveira 4y ago
You can use just the parser if you want to: https://rustpython.github.io/blog/2020/04/02/thing-explainer-parser.html https://rustpython.github.io/blog/2020/04/02/thing-explainer...
Which is great for embedding or customizing your scripting language needs.
- 0xffff2 4y agoThe first link on that page 404s. Anyone know the correct link to the parser code?
- isaacg 4y agohttps://github.com/RustPython/RustPython/tree/main/compiler/parser https://github.com/RustPython/RustPython/tree/main/compiler/...
- dimitrisjim 4y agoAh, thanks. Fixing this now.
- epage 4y agoI believe ruff [0] is using this for their linting / fixing [0]: https://beta.ruff.rs/docs/ https://beta.ruff.rs/docs/
- charliermarsh 4y agoYeah that's right, we use the RustPython parser and lexer internally. Works great! And it's actually seen a bunch of improvements over the past few months -- we contributed back some CPython compatibility improvements and a couple new language features (parenthesized with statements, match statements, *except support).