摘要
研究了OMGIDL编译器构造中各阶段的主要路线.介绍了词法分析阶段的文件包含、宏定义与宏展开、条件编译这三类预处理宏的解析方法;语法分析阶段的抽象语法树设计、语法树构造及在语法树构造过程中进行IDL名字空间约束的静态语义检查.在代码生成阶段,通过分析分布计算的简要过程,对远程调用参数及结果的传递代码、调用派遣代码的生成环节进行了讨论.
This paper covers the main design strategies in OMG IDL compiler construction. As to lexical scanning, processing of the three preprocessing macros is dwelled, including file inclusion, macro definition and expansion, and conditional compilation. As to syntax parsing, the focuse is drawn upon the way to design abstract syntax tree, the construction procedure of the abstract syntax tree, and the validation of static semantic such as IDL name space restrains. As to code generating, the two basic portions in remote calling, say, the code to pass parameters and results and to dispatch requests, are discussed after briefing the steps of distributed computation.
出处
《上海交通大学学报》
EI
CAS
CSCD
北大核心
1998年第10期46-49,共4页
Journal of Shanghai Jiaotong University
关键词
IDL编译器
预处理宏
抽象语法树
分布计算
IDL compiler
preprocessing macro
abstract syntax tree
distributed computation