D Grammar in BNF Text Form?

Dicebot via Digitalmars-d digitalmars-d at puremagic.com
Sun Jun 8 01:33:32 PDT 2014


On Saturday, 7 June 2014 at 17:46:06 UTC, Tom Browder via 
Digitalmars-d wrote:
> On Sat, Jun 7, 2014 at 12:05 PM, Tom Browder 
> <tom.browder at gmail.com> wrote:
>> On Sat, Jun 7, 2014 at 11:26 AM, Jacob Carlborg via 
>> Digitalmars-d
>> <digitalmars-d at puremagic.com> wrote:
> ...
>>> There's already a tool for that [1]. It uses the JSON output 
>>> from the
>>> compiler.
>>>
>>> [1] 
>>> https://github.com/D-Programming-Language/tools/blob/master/dtoh.d
> ...
>
> And Jacob, when I try your dstep on a header preprocessed with 
> gcc -E

AFAIR `gcc- E` output is not a valid C on its own, no wonder 
libclang chokes on it. Using llvm/clang toolchain with dstep 
results in much more pleasant experience (not surprisingly as 
dstep is implemented on top of it)


More information about the Digitalmars-d mailing list