Bob Nelson said:
My interest in this new topic was piqued by santosh's recent posting
concerning the subject of ``diagnostic message'' here in clc.
After reading the C99 standard (``n1256.pdf''), I am unclear if the
requirements of the ``translator'' are fulfilled if a translator does
nothing more than emit appropriate diagnostics -- without taking any
additional steps that could possibly lead to an executable program.
See 5.1.1.2(8) of that document, and also 5.1.2.3, especially section (5).
In short, does a tool such a <platform_specific>``lint''
</platform_specificmeet the definition of a translator according the
language definition?
No, it doesn't. Otherwise, so would the following DOS batch file:
@echo off
rem I'm a C compiler! No, really I am!
echo Your program (if you even have one)
echo may contain a syntax error or a
echo constraint violation. Or, on the
echo other hand, it may not. But I
echo decided in any case not to bother
echo to compile your code. HAND.
exit
--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999