On 11-03-2012 18:06, Philippe Sigaud wrote:
 >> On Sun, Mar 11, 2012 at 00:34, Alex Rønne
Petersen<xtzgzo...@gmail.com <mailto:xtzgzo...@gmail.com>>  wrote:

[Parsing C?]
 >> I think so. But you'd have to do add some semantic action to deal with
 >> typedefs and macros.
 >
 >
 > Oh, I should have mentioned I only meant the actual language
(ignoring the preprocessor).

OK. I admit I downloaded the C spec online, but was a bit taken aback by
the size of it. mot of it was the definition of the standard library,
but still...

 > Why do you need semantic actions for typedefs though? Can't you defer
resolution of types until after parsing?

Yes, that the way I'd do it. But some people seem to want to do it while
parsing. Maybe it blocks some parsing, if the parser encounter an
identifier where there should be a type?


Hm, I don't *think* C has such ambiguities but I could well be wrong. In any case, if it can handle the non-ambiguous case, that's enough for me. :)

--
- Alex

Reply via email to