[Python-Dev] C AST to Python discussion (original) (raw)
"Martin v. Löwis" martin at v.loewis.de
Wed Feb 15 20:26:24 CET 2006
- Previous message: [Python-Dev] C AST to Python discussion
- Next message: [Python-Dev] C AST to Python discussion
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Thomas Wouters wrote:
I would personally prefer the AST validation to be a separate part of the compiler. It means the one or the other can be out of sync, but it also means it can be accessed directly (validating AST before sending it to the compiler) and the compiler (or CFG generator, or something between AST and CFG) can decide not to validate internally generated AST for non-debug builds, for instance.
That's how the ast-objects branch currently works. There is a method checking that the tree actually conforms to the grammar.
Regards, Martin
- Previous message: [Python-Dev] C AST to Python discussion
- Next message: [Python-Dev] C AST to Python discussion
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]