D parser in tango or phobos

davidl davidl at 126.com
Wed Sep 3 08:33:11 PDT 2008


在 Wed, 03 Sep 2008 21:51:47 +0800,Knud Soerensen  
<4tuu4k002 at sneakemail.com> 写道:

> davidl wrote:
>> 在 Tue, 02 Sep 2008 15:37:38 +0800,Knud Soerensen
>> <4tuu4k002 at sneakemail.com> 写道:
>>
>>> Hi
>>>
>>> When building tools for manipulating d code, you practical always need  
>>> a
>>> parser.
>>>
>>> So, why not include a d parser as part of the runtime library,
>>> in that way the it is much easy to write code tools.
>>>
>>> dmd itself might even use the same parser, which
>>> will insure that the parser support the latest version of d and it will
>>> be a nice start for a incremental d compiler.
>>>
>>>
>>
>> It's not easy to have a complete working bug free parser.
>> dsource.org/projects/dparser
>>
> I know this is why I made the suggestion.
>
> The idea is that tool developer should have a stable platform
> base his tool upon.
>
> Such he doesn't have to patch the parser every time a new version of dmd
> hits the web.
>
>

What you're asking is simply impossible. It's equivalent to why we don't  
have a bug-free
frontend.



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



More information about the Digitalmars-d mailing list