[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: [OT] C parsing, was: Re: [Announce] Alpha release of a Lua debugger
- From: Philippe Lhoste <PhiLho@...>
- Date: Mon, 16 Apr 2007 11:14:27 +0200
Dave Dodge wrote:
Is that a string-literal or a header-name token? It matches the
syntax for both. The only way to know which one you've got is to
examine the preceding tokens to see if this is part of an #include
directive, even though preprocessing directives aren't really supposed
to be dealt with until phase 4.
Really? I am not a compiler expert, far from it, but as a C programmer I
thought preprocessing phase takes place before anything else. In early
compilers, it could even be done by a separate processor, IIRC.
I don't contest your knowledge, I just find this surprising.
-- (near) Paris -- France
-- -- -- -- -- -- -- -- -- -- -- -- -- --