preprocessor
Sign in to saveAlso known as pre-processor
In computer science, a preprocessor (or precompiler) is a program that processes its input data to produce output that is used as input in another program. The output is said to be a preprocessed form of the input data, which is often used by some subsequent programs like compilers. The amount and kind of processing done depends on the nature of the preprocessor; some preprocessors are only capable of performing relatively simple textual substitutions and macro expansions, while others have the power of full-fledged programming languages.
In the Vinony graph
Within Vinony's link graph, preprocessor is referenced by 175 other articles, and connects out to compiler, macro and OCaml.
It is catalogued under the topic Programming language implementation.
Its subject is documented across 28 Wikipedia language editions.
Wikidata facts
Show 1 more fact
- Stack Exchange tag
- stackoverflow.com/tags/preprocessor
Sources (2)
via Wikidata · CC0
~7 min read
Encyclopedic overview
12 sectionsContents
- Lexical preprocessors
- C preprocessor
- Other lexical preprocessors
- Syntactic preprocessors
- Customizing syntax
- Extending a language
- Specializing a language
- Preprocessors as template engines
- General purpose preprocessor
- See also
- References
- External links
In computer science, a preprocessor (or precompiler) is a program that processes its input data to produce output that is used as input in another program. The output is said to be a preprocessed form of the input data, which is often used by some subsequent programs like compilers. The amount and kind of processing done depends on the nature of the preprocessor; some preprocessors are only capable of performing relatively simple textual substitutions and macro expansions, while others have the power of full-fledged programming languages.
A common example from computer programming is the processing performed on source code before the next step of compilation. In some computer languages (e.g., C and PL/I) there is a phase of translation known as preprocessing. It can also include macro processing, file inclusion and language extensions.
Excerpted from Wikipedia’s “preprocessor” article, available under the CC BY-SA 4.0 licence.