Go to file
konsti db04fd4157
Refactor if statement, introduce nodes for elif and else (#22)
The old if layout couldn't differentiate between an else block with a
single if statement and an elif statement. Additionally we getting rid
of the recursion in favor of a single if struct with a vec of elif/else
children. This is accompanied by a big refactoring in ruff which removes
a bunch of TODOs and false negatives.
2023-07-18 13:14:40 +02:00
.github/workflows Remove asdl (#21) 2023-07-05 14:25:26 +02:00
ast Refactor if statement, introduce nodes for elif and else (#22) 2023-07-18 13:14:40 +02:00
core Lex Jupyter line magic with `Mode::Jupyter` (#23) 2023-07-18 09:24:24 +05:30
format Fix ArgWithDefault TextRange (#13) 2023-06-20 18:21:09 +02:00
literal Add utilities to enum (#44) 2023-05-16 23:29:49 +09:00
parser Refactor if statement, introduce nodes for elif and else (#22) 2023-07-18 13:14:40 +02:00
ruff_text_size Separate byteoffset ast and located ast 2023-05-09 00:21:52 +09:00
scripts Remove asdl (#21) 2023-07-05 14:25:26 +02:00
.cspell.json Setup spell checker 2023-05-10 17:57:15 +09:00
.gitattributes gitattribute 2023-05-07 17:20:52 +09:00
.gitignore impl Ranged for TextRange (#20) 2023-07-02 10:11:06 +02:00
Cargo.toml Remove `fold`, `unparse`, and `location` features (#9) 2023-06-19 17:26:17 -04:00
LICENSE Set up workspace - Forked from 2023-05-05 23:49:50 +09:00
README.md Add Pylyzer 2023-06-11 21:56:59 +09:00

README.md

RustPython parser as a library

This project is forked from RustPython project. The parser is one of the core part of RustPython and Ruff project.

We try to keep these crates as a well-packaged library for more potential users.

Projects

  • RustPython is a Python interpreter
  • Ruff is an extremely fast Python linter
  • Pylyzer is a static code analyzer / language server for Python
  • Baembal is a Python package to accelerate ast.parse