Hacker News new | ask | show | jobs
by HexDecOctBin 46 days ago
Has anyone tried to extend the C Preprocessor to be a fully turing complete language (perhaps something like Snobol) to allow for Terra like meta-programming?

(I am not talking about metalang99 or Cello like stuff, which exploits the Turing tarpit of the currently specified preprocessor but rather tasteful additions to the preprocessor itself).

3 comments

C++ started as a preprocessor.
but not the C preprocessor, but a completely different preprocessor.
I asked for tasteful additions :)
So did Objective-C
The C preprocessor is practically turing complete, in the same sense that C it self or your computer is practially turing complete, but not strictly.
We’ll get there in this series.