D Grammar in BNF Text Form?
Jacob Carlborg via Digitalmars-d
digitalmars-d at puremagic.com
Sun Jun 8 02:11:32 PDT 2014
On 2014-06-08 10:33, Dicebot wrote:
> 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)
Hmm, it adds a bunch of lines looking like this:
# 1 "foo.c"
Except for those it seems valid. If I recall correctly, there's a way to
tell Clang that it's a preprocessed file, probably with the -x flag.
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list