一种扩展的符号表基础结构,用于管理特定输出发生器信息的组成
An Extended Symbol Table Infrastructure to Manage the Composition of Output-Specific Generator Information
摘要:
代码生成是模型驱动开发(MDD)的重要组成部分,它将抽象的模型系统地转换为具体的代码。基于模板的代码生成的一个当前挑战是输出特定信息,即,关于所生成的源代码的信息没有被显式地建模,并且因此在代码生成期间不可访问。现有的方法尝试解析生成的输出或在写入文件之前将其存储在数据结构中。在本文中,我们提出了第一种方法来显式建模部分生成的输出。这些建模零件存储在符号中,以便进行有效管理。在代码生成期间,可以访问此信息以确保整个生成的源代码的组成是有效的。我们通过创建相关生成器输出信息的领域模型,扩展符号表以存储此信息,并调整整个代码生成过程来实现这一目标。
英文摘要:
Code generation is regarded as an essential part of model-driven development (MDD) to systematically transform the abstract models to concrete code. One current challenges of templatebased code generation is that output-specific information, i.e., information about the generated source code, is not explicitly modeled and, thus, not accessible during code generation. Existing approaches try to either parse the generated output or store it in a data structure before writing into a file. In this paper, we propose a first approach to explicitly model parts of the generated output. These modeled parts are stored in a symbol for efficient management. During code generation this information can be accessed to ensure that the composition of the overall generated source code is valid. We achieve this goal by creating a domain model of relevant generator output information, extending the symbol table to store this information, and adapt the overall code generation process.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。