论文标题
GPP,通用预处理器
GPP, the Generic Preprocessor
论文作者
论文摘要
在计算机科学中,预处理器(或宏处理器)是一种工具,该工具通常根据内联注释来改变其输入,以产生作为另一个程序输入的数据。预处理器用于软件开发和文档处理工作流程,以翻译或扩展编程或标记语言,以及有条件或基于模式的源代码和文本的生成。早期的预处理器是相对简单的弦乐替换工具,与特定的编程语言和应用程序域相关,尽管这些工具自此引起了更强大的通用工具,但这些工具通常要求用户使用自己的句法公约学习和使用复杂的宏观语言。在本文中,我们提出了GPP,这是一个可扩展的通用预处理程序,其主要优势是可以定制其语法和行为以适合任何给定的预处理任务。这使得GPP对研究应用程序具有特殊的好处,在该应用程序中,它很容易与新颖的标记,编程和控制语言一起使用。
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 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.