Skip to content
EntityQ918333· pop 28· linked from 175 articles

preprocessor

Sign in to save

Also 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.

Wikidata facts

Show 1 more fact
Sources (2)

via Wikidata · CC0

~7 min read

Article

12 sections
Contents
  • 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.

Connections

Categories