D compiler front end in Phobos (was: syntax definition language)

Gor Gyolchanyan gor.f.gyolchanyan at gmail.com
Wed Nov 2 03:08:56 PDT 2011


If you have a generic compile-time parser, you can use it to parse
your favorite language at compile-time and generate necessary D code
for it.
Example:
You have a .sql file with a very large and complicated query,
involving tons of joins.
You parse the .sql file at compile-time and generate respective api
calls for your favorite database system, making it statically known,
precompiled and extremely fast.

On Wed, Nov 2, 2011 at 1:19 PM, Marco Leise <Marco.Leise at gmx.de> wrote:
> Am 25.10.2011, 08:20 Uhr, schrieb Gor Gyolchanyan
> <gor.f.gyolchanyan at gmail.com>:
>
>> [...] then you could easily make a parser for your favourite
>> language and interpret it at compile-time to generate D code.
>
> I don't get that one ;)
>


More information about the Digitalmars-d mailing list