logoalt Hacker News

ryaolast Monday at 10:25 PM2 repliesview on HN

If the C compiler accepts it, it is C.


Replies

WalterBrightlast Monday at 11:37 PM

Pedantically, the preprocessor is an entirely separate language. The lexing, parsing, expressions, and semantics are totally distinct. The preprocessor is usually implemented as a completely independent program. My first C compiler did integrate the preprocessor with the C compiler, but that was for performance reasons.

Currently, ImportC runs cpp and then lexes/parses the resulting C code for use in D.

show 1 reply
zabzonklast Monday at 11:23 PM

There is no one "the C compiler".

show 1 reply