Re: [Cython] RFC: an inline_ function that dumps c/c++ code to the code emitter

2016-08-23 Thread Jason Newton
Just trying and improve the state of the art. Yea maybe we have to add some tricks to separate the two grammar wise, so they can play together. Besides, I didn't start with that complexity, it evolved into seeing if that was a viable path forward. On Tue, Aug 23, 2016 at 5:15 AM, Alex S. wrote:

Re: [Cython] RFC: an inline_ function that dumps c/c++ code to the code emitter

2016-08-23 Thread Jason Newton
> > > I have another idea/iteration to run by you then. One of your chief > > quibbles, although I don't think it's your underlying one, is Cython must > > understand what's going on. So how about we support a block of C/C++ > code > > as a proper construct. Same name but now, I guess braces may

Re: [Cython] RFC: an inline_ function that dumps c/c++ code to the code emitter

2016-08-23 Thread Alex S.
Watching this thread for a long time now, and I must say I absolutely love how someone just barges in «oh just add parsing of C++ AST». C++ is a language with an extremely complex context-dependent grammar, much more so than C. Not to mention they took to updating the standard with new awesome f