Files
ruff/crates/ruff_python_parser
Dhruv Manilawala c24ded8ef6 Update ruff_python_parser README for crates.io (#26315)
## Summary

This PR updates the parser README to:
1. Link the parser README's AST reference to the published
`ruff_python_ast` crate
2. Remove the obsolete "Python version support" section now that version
specific syntax errors are implemented

Additionally, I've also updated the README generator to add a
"Versioning" section while preserving the rest of the handwritten README
and updated the generator to refresh marker-delimited versioning
sections. Maybe this is not worth doing, let me know if that's the case.

### Review

-
https://github.com/astral-sh/ruff/pull/26315/commits/5a4145a37436872c197c7de9771a04e91f4f0500
- updates the README manually as mentioned in (1) and (2) above
-
https://github.com/astral-sh/ruff/pull/26315/commits/dcb59253c41ecbebacd919defcbb725461a95478
- updates the README generator to add the versioning section

## Test plan

Here's the [Rendered
README](https://github.com/astral-sh/ruff/blob/dcb59253c41ecbebacd919defcbb725461a95478/crates/ruff_python_parser/README.md)
for preview.

Ran `uv run --script scripts/generate-crate-readmes.py` twice and
verified idempotent output
2026-06-24 12:07:14 +05:30
..
2026-06-23 20:42:26 -04:00

Ruff Python Parser

Ruff's Python parser is a hand-written recursive descent parser which can parse Python source code into an Abstract Syntax Tree (AST). It also utilizes the Pratt parsing technique to parse expressions with different precedence.

Try out the parser in the playground.

Contributing

Refer to the contributing guidelines to get started and GitHub issues with the parser label for issues that need help.

Versioning

This crate is an internal component of Ruff. The Rust API exposed here is unstable and will have frequent breaking changes.

This version (0.0.2) is a component of Ruff 0.15.19. The source can be found here.

See Ruff's crate versioning policy for details on versioning.