GPP, the Generic Preprocessor

Tristan Miller, Denis Auroux
<span title="2020-07-28">2020</span> <i title="The Open Journal"> <a target="_blank" rel="noopener" href="https://fatcat.wiki/container/3gk7mr6lhvdwnkgcicv7r2lrry" style="color: black;">Journal of Open Source Software</a> </i> &nbsp;
In computer science, a preprocessor (or macro processor) is a tool that programatically alters its input, typically on the basis of inline annotations, to produce data that serves as input for another program. Preprocessors are used in software development and document processing workflows to translate or extend programming or markup languages, as well as for conditional or pattern-based generation of source code and text. Early preprocessors were relatively simple string replacement tools that
more &raquo; ... were tied to specific programming languages and application domains, and while these have since given rise to more powerful, general-purpose tools, these often require the user to learn and use complex macro languages with their own syntactic conventions. In this paper, we present GPP, an extensible, general-purpose preprocessor whose principal advantage is that its syntax and behaviour can be customized to suit any given preprocessing task. This makes GPP of particular benefit to research applications, where it can be easily adapted for use with novel markup, programming, and control languages.
<span class="external-identifiers"> <a target="_blank" rel="external noopener noreferrer" href="https://doi.org/10.21105/joss.02400">doi:10.21105/joss.02400</a> <a target="_blank" rel="external noopener" href="https://fatcat.wiki/release/ok4hvzhfezcdzcdcva6duanbym">fatcat:ok4hvzhfezcdzcdcva6duanbym</a> </span>
<a target="_blank" rel="noopener" href="https://web.archive.org/web/20200819184203/https://joss.theoj.org/papers/10.21105/joss.02400.pdf" title="fulltext PDF download" data-goatcounter-click="serp-fulltext" data-goatcounter-title="serp-fulltext"> <button class="ui simple right pointing dropdown compact black labeled icon button serp-button"> <i class="icon ia-icon"></i> Web Archive [PDF] <div class="menu fulltext-thumbnail"> <img src="https://blobs.fatcat.wiki/thumbnail/pdf/a8/70/a870f2f47d5beb1f8e6cdd79451de2c2e3ca4516.180px.jpg" alt="fulltext thumbnail" loading="lazy"> </div> </button> </a> <a target="_blank" rel="external noopener noreferrer" href="https://doi.org/10.21105/joss.02400"> <button class="ui left aligned compact blue labeled icon button serp-button"> <i class="unlock alternate icon" style="background-color: #fb971f;"></i> Publisher / doi.org </button> </a>