proj-plbook-plChPreprocLangs

Difference between revision 3 and current revision

No diff available.

Table of Contents for Programming Languages: a survey

Chapter : metaprogramming via preprocessor languages

m4

https://en.wikipedia.org/wiki/M4_%28computer_language%29

Turing-complete

Opinions:

Links:

C preprocessor

not Turing-complete

https://en.wikipedia.org/wiki/C_preprocessor#As_a_general-purpose_preprocessor_.28GPP.29

"The most common example of this is the C preprocessor, which takes lines beginning with '#' as directives. Because it knows nothing about the underlying language, its use has been criticized and many of its features built directly into other languages. For example, macros replaced with aggressive inlining and templates, includes with compile-time imports (this requires the preservation of type information in the object code, making this feature impossible to retrofit into a language);..." -- https://en.wikipedia.org/wiki/Preprocessor#C_preprocessor

C++ templates

Turing-complete