检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
机构地区:[1]沈阳工业学院计算机系
出 处:《沈阳工业学院学报》1998年第2期29-34,共6页Journal of Shenyang Institute of Technology
摘 要:介绍了教学编译程序实例的设计思想和语法规则,并着重对主程序、分程序和几个功能性程序给予了详细分析.本编译程序取标准PASCAL的一个典型子集作为编译对象.词法分析中使用了超前搜索和状态转换图;语法分析中使用了算符优先分析法和递归下降分析法;中间代码是四元式;查表方式是折半查找.这些技术同样也适用于处理标准PAS-CAL和其它程序设计语言书写的源程序.This paper introduces the design idea and the syntax of a Compiler used in teaching with focus on the analysis of the main program,block and several functional program.This compiler takes a typical subset of the standard PASCAL as the compiling object.The lead search and state transform diagram are used in the lexical analysis.The operator precedence parsing and recursive descent parsing are used in the syntax analysis and the intermediate code is quadruples.Binary search is used in searching tables.These technologies are also suitable for standard PASCAL and the source code written in other programming languages.
分 类 号:TP314[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.15