Sujet : Re: question about linker
De : Keith.S.Thompson+u (at) *nospam* gmail.com (Keith Thompson)
Groupes : comp.lang.cDate : 11. Dec 2024, 23:06:42
Autres entêtes
Organisation : None to speak of
Message-ID : <87wmg5x4b1.fsf@nosuchdomain.example.com>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
User-Agent : Gnus/5.13 (Gnus v5.13)
bart <
bc@freeuk.com> writes:
[...]
You need input from a symbol table in order to parse C, a table that
the parser needs to maintain as it processes source code. That will
tell you whether a particular identifier is a typename or not.
Yes. (I've mentioned this a number of times.)
There are issues also with keywords like 'break'.
What issues?
If you're referring to the fact that a break statement can occur only
within a loop or switch, I don't see the problem. A break statement
that's not within a loop or switch is a constraint violation, not a
syntax error. I've never heard of a C compiler having any difficulty
diagnosing it correctly.
If you're referring to the fact that break can apply either to a loop or
to a switch, that's a potential source of confusion, but it shouldn't be
a problem once you're aware of it.
-- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.comvoid Void(void) { Void(); } /* The recursive call of the void */