期刊文献+

基于ANTLR4的DDS代码生成工具的设计与实现 被引量:2

Design and implementation of DDS code generation tool based on ANTLR4
下载PDF
导出
摘要 当下DDS代码生成工具生成的工程文件冗余、开源代码不能满足项目需要,为此设计并实现基于ANTLR4的DDS代码生成工具,根据IDL文件中定义的数据类型,生成支持CMake构建的工程文件,能够在Windows/Linux等不同平台下的编译。聚焦于识别和处理IDL编程语言的词法、语法及语义分析,基于ANTLR4语言识别工具和实例化模板,构建用户自定义数据结构的DDS应用代码文件。测试结果表明,所提工具支持UI和命令行两种运行方式,具有较好的生成速度,支持IDL标准中定义的多种数据类型和关键字,生成的工程文件支持跨平台编译。 In view of the current situation that the project files generated by DDS code generation tools are redundant and open source code cannot meet the needs of the project,a DDS code generation tool based on ANTLR4 was designed and implemented,which generated project files supporting CMake construction according to the data types defined in IDL files,and it was conve-nient to transplant and support compilation under different platforms such as Windows/Linux.Focusing on identifying and processing the lexical,grammatical and semantic analysis of IDL programming language,based on ANTLR4 language identification tool and instantiation template,DDS application code files with user-defined data structures were constructed.Testing results demonstrate that the proposed tool has two operation modes including UI and command line with better generation speed,it supports a variety of data types and keywords defined in IDL standards,and the project files generated using the tool can be compiled in different platforms.
作者 叶亚峰 寇金桥 邵宗林 YE Ya-feng;KOU Jin-qiao;SHAO Zong-lin(Institute 706,Second Academy of China Aerospace Science and Industry Corporation,Beijing 100854,China)
出处 《计算机工程与设计》 北大核心 2023年第4期1274-1280,F0003,共8页 Computer Engineering and Design
关键词 数据分发服务 接口描述语言 语言识别工具 语法分析 词法分析 语义分析 代码生成工具 data distribution service interface description language language recognition tools grammatical analysis lexical analysis semantic analysis code generation tool
  • 相关文献

参考文献12

二级参考文献45

共引文献25

同被引文献13

引证文献2

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部