Fabio,
I saw your comment here
https://github.com/cython/cython/issues/1628and was wondering if I could get your advice with something I'd like to do.
I have used the ast module in python to write custom syntax checks on user programs. They are pretty simple; for example, for a program to work in our infrastructure the user must put certain decorators in a certain order otherwise things go badly. Since we load the python interpreter and subsequent user program in C++ code, we run this checker prior to invoking the user program which saves a lot of debug and headaches.
I'd like to be able to do the same thing with .pyx cython files. I am wondering if you think the example you shared
```
from Cython.Compiler.TreeFragment import parse_from_strings
mod = parse_from_strings(name, source)
```
would allow me to do the same simple checks like I can with the ast module where I would somehow process mod.
If so, do you know if there any documentation like the ast module has on how to visit nodes and such ? If not, I am wondering if you'd be willing to share a bit of your wisdom and or/examples on how to do the equivalent basic operations the python ast module provides. I'm not sure how to get started and could really use any info you could share.
Thx a bunch, Walt.