Dag Sverre Seljebotn wrote: > PostParse (in ParseTreeTransforms.py) is a very safe spot to do > things like this. One can trivially implement visit_ReturnStatNode and > raise syntax errors if one is not within a function, and it means that > if there's an error, one simply stops before getting to somewhere it can > cause trouble. > > IMO more error checking (e.g. for most syntax errors) should go into there.
Yes, good idea. Then we could prevent jumping into the code generation phase completely whenever an error occurred in an earlier phase, which will keep the code generation code simple. Stefan _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
