摘要
类型识别是编译器开发中的一项重要工作,也是语义分析中的一个最重要组成部分。本论文以JE4VB(JavaEditonforVB)系统开发为背景,介绍将VB代码移植成Java代码的高级编译器中的类型识别问题。通过研究了4GL编译器语义分析过程中的类型识别问题,根据给出的抽象语法树和符号表,提出类型识别的解决方案,并给出详细的实现算法。
Type identification, also called type-checking, is one important parts of development of compiler, and one most important component of semantic analysis. On the basis of system named JE4VB(Java Editon for VB), it introduces the question of type identification which translate VB source code to Java source code. Firstly, the author research question of type identification which occur in 4GL compiler semantic analysis, then get the solutions of type identification according to AST(abstract syntax tree) and symbol table, finally design the detailed realization algorithm.
出处
《微电子学与计算机》
CSCD
北大核心
2004年第12期174-178,共5页
Microelectronics & Computer