D parser in tango or phobos
davidl
davidl at 126.com
Tue Sep 2 03:41:18 PDT 2008
在 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
and there're something else like Aziz's dil, and pragma's ddl subproject
enki generated
dparser, also Jascha's parser generator APaGed(which is also capable of
generating a
simple parser).
dparser provides a lot more semantic analysis than those others as far as
I can see, while
there're a lot bugs in it.
Dil should be the cleanest. There're a lot great ideas. While a lot
semantics not done yet.
It's your choice to choose
--
使用 Opera 革命性的电子邮件客户程序: http://www.opera.com/mail/
More information about the Digitalmars-d
mailing list