Proof of concept: automatically import C header files

deadalnix deadalnix at gmail.com
Wed Jul 17 09:45:40 PDT 2013


On Wednesday, 17 July 2013 at 07:17:07 UTC, Timothee Cour wrote:
> you'd still need to parse C files recursively (textual 
> inclusion...),
> handle different C function calling conventions, different C 
> standards,
> you'd need a way to forward to dmd different C compiler options 
> (include
> paths to standard / custom libraries), and eventually people 
> will want to
> parse C++ as well anyways. That can be a lot of work. Whereas 
> using
> existing tools takes much less effort and is less error prone.

I'm talking about semantic analysis, you answer with parsing, I'm 
not sure this is going to lead anywhere. Do you understand that a 
parser is actually quite a small part of a frontend ?


More information about the Digitalmars-d mailing list