Compiling DMD parser?

davidl davidl at 126.com
Sun Jul 13 21:29:05 PDT 2008


在 Mon, 14 Jul 2008 11:32:57 +0800,Bill Baxter  
<dnewsgroup at billbaxter.com> 写道:

> davidl wrote:
>> 在 Sun, 13 Jul 2008 12:33:54 +0800,Markus Koskimies  
>> <markus at reaaliaika.net> 写道:
>>
>>> Hi,
>>>
>>> I thought that I could play around a little bit with DMD parser. I have
>>> DMD 1.030 parser sources, and I made a simple makefile for just  
>>> compiling
>>> those sources (with gcc 4.3.1).
>>>
>>> ---
>>> Some questions:
>>>
>>> - These are C++ sources, not C sources, although the suffix is .c and  
>>> .h,
>>> right? A little bit sad, I thought that I could wrap the parser to D  
>>> :( I
>>> have not much interest playing with C++ at freetime...
>>>
>>> - Are these files meant to be compiled alone without making  
>>> modifications
>>> to files? For example:
>>>
>>> - In "attrib.c", if linux is defined, it tries to include mem.h from  
>>> "../
>>> root"; why not the one in the src/ directory?
>>>
>>> - There is no such file that "id.h", which probably contains  
>>> class/struct/
>>> enum "Id"
>>>
>>> - init.h does not include "hdrgen.h", while uses HdrGenState
>>>
>>> ---
>>> How these parser codes are meant to be used? Am I missing something?
>>  actually dparser is not 1.014 anymore. it's somewhat 1.024ish
>> the parsing ability has been improved a lot, it can parse itself, and  
>> some ctfes.
>> 700 or so cases from dstress fail.
>
> I hope you don't mind that I too the liberty of updating the dparser  
> wiki page to reflect that information.
>
> --bb

Appreciated!

Wish you get envolved! :D

-- 
使用 Opera 革命性的电子邮件客户程序: http://www.opera.com/mail/



More information about the Digitalmars-d mailing list