On May 7, 2008, at 3:37 PM, Fabrizio Milo aka misto wrote: >> I don't think the discussion would be complete without at least >> looking at the possibility of using the parser that comes with >> Python >> itself. > > The one written in C ? and extending it with Cython itself ? > not sure to understand :|
There are some python parsing files as well, see, for example, src/ Lib/compiler in the Python sources. We could perhaps even use some stuff (classes, ast vistor, etc) from the compiler modules. On the other hand, we don't want to rely to heavily on the specific version of Python the user has. A simple grammar -> parser module like you've talked about before seems ideal, and would probably be fairly compact. - Robert _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
