This article is rated C-class on Wikipedia's
content assessment scale. It is of interest to the following WikiProjects: | |||||||||||
|
The term preprocessor is customarily associated with compilation of source code. ( http://foldoc.org/foldoc.cgi?query=preprocessor&action=Search), ( http://www.cs.cf.ac.uk/Dave/C/node14.html). The content related to web application development was moved to web template to avoid the (potentially misleading) implication that a preprocessor is the same thing as a "web template system" that is used for purposes other than web development. Although there are similarities, these concepts are sufficiently distinct to warrant separate treatment in separate articles. Moreover, the similarities go far beyond web application development and thus are more appropriately handled with "See Also" links (e.g., preprocessor similarity to tools like AWK, SED, similarity to Template-based document generation systems, similarity to "mail merge" in word processing software, similarity to perl, similarity to shell-script "Here Documents" ... etc etc). Dreftymac 17:04, 9 October 2006 (UTC)
"Preprocessors are routinely invoked in the process of compiling source code "
"Examples of "general purpose" uses include batch processing of HTML or PostScript files, and auto-generation of mailing lists and e-mail "
I'm no expert in Lisp, my paragraph of specialization is not very good. Could anyone improve it ?
I think the problem is that many people use computers arn't computer experts and so wouldn't understand the majority of the jargon on the main article. Also, I'd like to buy a laptop there is no clause stating the different processor speeds and what they are capable of. - The article needs lots of work!
PHP? I know that the language is run as a sort of "preprocessor" before HTML output, and the name now stands for "PHP: Hypertext Preprocessor", but given the level of programming sophistication it offers, I wouldn't exactly call it a lexical preprocessor. It is a preprocessor of sorts, but it's far more advanced than simple token replacement. (For that matter, so is m4, but that's a bit less clear-cut, I think.)
Also, I've taken the liberty of adding some detail on CPP macros, including their limitations. -- Flewellyn 05:39, 22 August 2006 (UTC)
Preprocessor implements simple macro languages. In a preprocessor/compiler pair, like CPP/ C-compiler, the macro language (CPP statements) is embedded on the host language (C code). The use of the preprocessor into this (pair) context is domain-specific. But if we isolate the "macro language" from this pair, it is not so specific, and it can be used for other purposes:
Technically, the preprocessors macro languages express algorithms precisely, and if it can express "all possible algorithms" [3] it can be said "general purpuse". M4 is probably the most well known example of such a general purpose preprocessor. The CPP is sometimes used in a non-C specific role, but not defined as general purpose [4].
--
Krauss
23:17, 10 October 2006 (UTC)
The "General purpose preprocessor" is a not usual concept, but need precision (and to be didactic!) into the explain, to use the correct concepts (and avoid misleading interpretations) in other wiki articles, like template engine. It also need authoritative sources (see reference section), to avoid discussion or premature updates.
PLEASE NOT CLEAN OR REDUCE the section without justify here. -- Krauss 10 October 2006
{{
cite book}}
: line feed character in |publisher=
at position 7 (
help)
Please see Directive (programming).
This article mentions that there are 2 preprocessing directives for C++: #include <...> and #include"...". Is there a difference between the two? If there is, it should be mentioned in the article.-- 76.234.101.109 ( talk) 21:52, 19 December 2008 (UTC)
I've removed the overattention given to it(it DOES have its own page and there ARE other preprocessors); in addition, I've taken the liberty of taking the semirabid criticism from the article, instead mentioning that the tasks it's used for are accomplished in other ways in other languages(such as Java's preservation of type information prior to linktime to replace header files and agressive inlining to eliminate macros). The lexical section, which no longer dominates the article, should now read much more neutrally. BioTube ( talk) 14:33, 15 May 2009 (UTC)
.i redirects to the preprocessor article. What sort of preprocessing related files does the .i file extension designate? -- Abdull ( talk) 16:05, 10 February 2010 (UTC)
I removed it because I couldn't find a definition of "rational prerocessing". If this is a thing, please source it when re-inserting. Paradoctor ( talk) 11:55, 25 July 2017 (UTC)
This article is rated C-class on Wikipedia's
content assessment scale. It is of interest to the following WikiProjects: | |||||||||||
|
The term preprocessor is customarily associated with compilation of source code. ( http://foldoc.org/foldoc.cgi?query=preprocessor&action=Search), ( http://www.cs.cf.ac.uk/Dave/C/node14.html). The content related to web application development was moved to web template to avoid the (potentially misleading) implication that a preprocessor is the same thing as a "web template system" that is used for purposes other than web development. Although there are similarities, these concepts are sufficiently distinct to warrant separate treatment in separate articles. Moreover, the similarities go far beyond web application development and thus are more appropriately handled with "See Also" links (e.g., preprocessor similarity to tools like AWK, SED, similarity to Template-based document generation systems, similarity to "mail merge" in word processing software, similarity to perl, similarity to shell-script "Here Documents" ... etc etc). Dreftymac 17:04, 9 October 2006 (UTC)
"Preprocessors are routinely invoked in the process of compiling source code "
"Examples of "general purpose" uses include batch processing of HTML or PostScript files, and auto-generation of mailing lists and e-mail "
I'm no expert in Lisp, my paragraph of specialization is not very good. Could anyone improve it ?
I think the problem is that many people use computers arn't computer experts and so wouldn't understand the majority of the jargon on the main article. Also, I'd like to buy a laptop there is no clause stating the different processor speeds and what they are capable of. - The article needs lots of work!
PHP? I know that the language is run as a sort of "preprocessor" before HTML output, and the name now stands for "PHP: Hypertext Preprocessor", but given the level of programming sophistication it offers, I wouldn't exactly call it a lexical preprocessor. It is a preprocessor of sorts, but it's far more advanced than simple token replacement. (For that matter, so is m4, but that's a bit less clear-cut, I think.)
Also, I've taken the liberty of adding some detail on CPP macros, including their limitations. -- Flewellyn 05:39, 22 August 2006 (UTC)
Preprocessor implements simple macro languages. In a preprocessor/compiler pair, like CPP/ C-compiler, the macro language (CPP statements) is embedded on the host language (C code). The use of the preprocessor into this (pair) context is domain-specific. But if we isolate the "macro language" from this pair, it is not so specific, and it can be used for other purposes:
Technically, the preprocessors macro languages express algorithms precisely, and if it can express "all possible algorithms" [3] it can be said "general purpuse". M4 is probably the most well known example of such a general purpose preprocessor. The CPP is sometimes used in a non-C specific role, but not defined as general purpose [4].
--
Krauss
23:17, 10 October 2006 (UTC)
The "General purpose preprocessor" is a not usual concept, but need precision (and to be didactic!) into the explain, to use the correct concepts (and avoid misleading interpretations) in other wiki articles, like template engine. It also need authoritative sources (see reference section), to avoid discussion or premature updates.
PLEASE NOT CLEAN OR REDUCE the section without justify here. -- Krauss 10 October 2006
{{
cite book}}
: line feed character in |publisher=
at position 7 (
help)
Please see Directive (programming).
This article mentions that there are 2 preprocessing directives for C++: #include <...> and #include"...". Is there a difference between the two? If there is, it should be mentioned in the article.-- 76.234.101.109 ( talk) 21:52, 19 December 2008 (UTC)
I've removed the overattention given to it(it DOES have its own page and there ARE other preprocessors); in addition, I've taken the liberty of taking the semirabid criticism from the article, instead mentioning that the tasks it's used for are accomplished in other ways in other languages(such as Java's preservation of type information prior to linktime to replace header files and agressive inlining to eliminate macros). The lexical section, which no longer dominates the article, should now read much more neutrally. BioTube ( talk) 14:33, 15 May 2009 (UTC)
.i redirects to the preprocessor article. What sort of preprocessing related files does the .i file extension designate? -- Abdull ( talk) 16:05, 10 February 2010 (UTC)
I removed it because I couldn't find a definition of "rational prerocessing". If this is a thing, please source it when re-inserting. Paradoctor ( talk) 11:55, 25 July 2017 (UTC)