document code generation

This commit is contained in:
dvermd
2022-10-24 15:37:33 +02:00
parent c1aa5dfcbe
commit 02af970fcf

View File

@@ -191,6 +191,14 @@ the Rust code used to represent different Python objects and their methods. The
core implementation of what a Python object is can be found in
`vm/src/pyobjectrc.rs`.
### Code generation
There are some code generations involved in building RustPython:
- some part of the AST code is generated from `vm/src/stdlib/ast/gen.rs` to `compiler/ast/src/ast_gen.rs`.
- the `__doc__` attributes are generated by the
[__doc__](https://github.com/RustPython/__doc__) project which is then included as the `rustpython-doc` crate.
## Questions
Have you tried these steps and have a question, please chat with us on