DStep - Bindings Generator 0.0.1

Jonathan M Davis jmdavisProg at gmx.com
Sun Jul 8 18:51:08 PDT 2012


On Sunday, July 08, 2012 18:39:54 Walter Bright wrote:
> On 7/8/2012 3:27 PM, Dmitry Olshansky wrote:
> > I think extra syntax could be added easily WHEN the need arrives, so far
> > 1:1 converters to extension feels fine.
> 
> I don't think CTFE is good enough to parse C code in all its complex glory -
> and it would be 1000 times too slow if it did.

Unless you need to get at an external program or file, I would fully expect to 
be able to write a fully functional C parser using only CTFE-usable 
constructs. However, I expect that it would be disgusting to do so, and as you 
say, it would be horribly inefficient.

- Jonathan M Davis


More information about the Digitalmars-d-announce mailing list