通用预处理器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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。