文件名称:myPL0
介绍说明--下载内容均来自于网络,请自行研究使用
本次实验使用平台是Microsoft Visual C++6.0,编程语言是C语言,利用递归下降子程序法实现对一个PL/0源程序中的表达式、各种说明语句、赋值语句进行词法分析和语法分析,完成符号表的管理并能实现确定源码中标识符的类型与二维坐标位置,和赋值语句及表达式中间代码的生成,做的一大亮点是程序有着很严格的出错处理子程序,能确定错误类型和错误位置,能检测输入源程序的开头,数值类型的判断,运算错误检查,变量定义重复性的检查,数值类型的一致性检查,语法错误的检查等多达二十种错误类型。
程序的处理结果是显示到dos界面上,用输出函数将符号表和中间代码的四元式显示出来,程序的输入是利用读文件方式获取的,输入文件名即可载入文件并处理源码,由于程序有着很强的报错功能,所以很容易知道代码的错误类型和位置。-Recursive subroutine method to achieve a decline in PL/0 source of expression, all that statement, assignment to lexical analysis and syntax analysis, symbol table management to complete and to determine the source code to achieve the type of identifier and the second Dimensional coordinates, and the assignment statement and the expression of intermediate code generation, to do a major highlight of the program have a very strict error handling routines, can determine the type of error and error location, can detect the beginning of the input source, numerical type Judge, computing error checking, variable definitions of repetitive checking, numerical type of consistency checking, grammar checking and so on up the wrong type of error twenty
程序的处理结果是显示到dos界面上,用输出函数将符号表和中间代码的四元式显示出来,程序的输入是利用读文件方式获取的,输入文件名即可载入文件并处理源码,由于程序有着很强的报错功能,所以很容易知道代码的错误类型和位置。-Recursive subroutine method to achieve a decline in PL/0 source of expression, all that statement, assignment to lexical analysis and syntax analysis, symbol table management to complete and to determine the source code to achieve the type of identifier and the second Dimensional coordinates, and the assignment statement and the expression of intermediate code generation, to do a major highlight of the program have a very strict error handling routines, can determine the type of error and error location, can detect the beginning of the input source, numerical type Judge, computing error checking, variable definitions of repetitive checking, numerical type of consistency checking, grammar checking and so on up the wrong type of error twenty
(系统自动生成,下载前可以参看下载内容)
下载文件列表
myPL0\Debug\myPL0.exe
.....\.....\myPL0.ilk
.....\.....\myPL0.obj
.....\.....\myPL0.pch
.....\.....\myPL0.pdb
.....\.....\vc60.idb
.....\.....\vc60.pdb
.....\e1.txt
.....\e2.txt
.....\e3.txt
.....\myPL0.cpp
.....\myPL0.dsp
.....\myPL0.dsw
.....\myPL0.ncb
.....\myPL0.opt
.....\myPL0.plg
.....\test.txt
.....\Debug
myPL0
.....\.....\myPL0.ilk
.....\.....\myPL0.obj
.....\.....\myPL0.pch
.....\.....\myPL0.pdb
.....\.....\vc60.idb
.....\.....\vc60.pdb
.....\e1.txt
.....\e2.txt
.....\e3.txt
.....\myPL0.cpp
.....\myPL0.dsp
.....\myPL0.dsw
.....\myPL0.ncb
.....\myPL0.opt
.....\myPL0.plg
.....\test.txt
.....\Debug
myPL0