Skip to content

Commit a8956c0

Browse files
committed
chore: add note about development in readme
Signed-off-by: Jan Vollmer <jan@vllmr.dev>
1 parent f70c0cc commit a8956c0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ A complete unparser for rustpython-parser ASTs.
1010

1111
I created this library because I quickly needed a way to turn rustpython-parser ASTs back to some form of Python source code. Since the unparser contained within rustpython-ast only supports expressions and not statements, I started implementing my own unparser by taking heavy inspiration from rustpython's unparser and the unparser in the python standard library. Therefore, most credit goes to the respective teams behind the ast standard library module and RustPython. I only glued the parts I needed together to a complete unparser in this repository.
1212

13+
I personally don't use this crate anymore since I switched over to using the ruff's internal AST, but I will still accept PRs.
14+
Feel free to contribute if you find out that you are missing something.
15+
1316
## Contributing
1417

1518
You can already help a lot by reporting issues with generated code. If you find an issue,please provide example code of the original source and the unparsed source with a concise explanation.
@@ -35,6 +38,6 @@ fn main() {
3538
}
3639
```
3740

38-
# Transformer
41+
## Transformer
3942

4043
This crate also contains a transformer trait for easy transformation of ASTs with the possibility of removing nodes. Enable the `transformer` feature to use it. It is similar to rustpython-ast's visitor, with the difference that a visit functions always return `Option<...>` and statements/expressions are passed as mutable.

0 commit comments

Comments
 (0)