From 02af970fcf4b5515213bc7fd32f5953a477ccfaf Mon Sep 17 00:00:00 2001 From: dvermd <315743+dvermd@users.noreply.github.com> Date: Mon, 24 Oct 2022 15:37:33 +0200 Subject: [PATCH] document code generation --- DEVELOPMENT.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index 26926b1960..f5df2a32f1 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -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