课程实验报告C语言版本 1.PL/0 源程序 // PL0.txt const a=10; var b,c; procedure p; begin c:=b+a end; begin read(b); while b#0 do begin call p;write(2*c);read(b) end end. 2.词法分析结果(PL/0 单词流文件) //outputfile.txt constsym, ident, a eql, number, 10 semicolon, varsym, ident, b comma, ident, c semicolon, proceduresym, ident, p semicolon, beginsym, ident, c becomes, ident, b plus, ident, a endsym, semicolon, beginsym, readsym, lparen, ident, b rparen, semicolon, whilesym, ident, b neq, number, 0 dosym, beginsym, callsym, ident, p semicolon, writesym, lparen, number, 2 times, ident, c rparen, semicolon, readsym, lparen, ident, b rparen, endsym, endsym,
2022-06-04 16:55:30 22KB C语言
1
包含五个实验:词法分析,ll(1)分析,算符优先文法,语法分析,语义分析五个实验。报告和源代码都在其中,目的嘛,为了方便学弟学妹,省的浪费时间。部分代码有点错误,我也不想调试了,因为我也不喜欢编译实验,如果你想,可以修改一下有的程序。C#
1
内含三个实验报告,分别是flex构建词法分析器,bison构建语法分析器,构建pl0编译器,报告解释详尽,欢迎下载
2022-05-26 11:11:01 4.96MB 编译原理 pl0
1
我航2013年编译大作业,C语言实现pl0编译器,中等难度
2022-05-13 19:16:05 329KB pl0 编译器 C语言
1
实验报告,源程序,测试用例都齐全,完整版
2022-05-03 15:44:01 446KB 编译原理 实验报告 PL0
1
一个很好用的PL0编译器,计算机专业的可以试试用下,不错的一个小东西,尤其适合软件相关专业使用,推荐感兴趣的朋友使用
2022-04-27 13:08:38 240KB PL0 编译器
1
编译原理PL0编译器源代码,C语言编写,无错误
2021-12-20 15:09:15 6KB PL0
1
扩充PL/0语言为PL/1语言,其中增加if S then S1 else S2语句.改造PL/1为PL/2,使其支持repeat S until E语句、for循环
2021-12-14 14:05:47 240KB 编译原理 PL0 if_else
1
C++编写的pl0编译器,可以编译pl0源码、生成目标代码和执行pl0程序功能。还加入了简单的MFC界面以方便操作,有pl0编辑界面和直接打开pl0文件功能。debug下的.exe可在安装有vc的机器上直接执行,当然你也可以自己编译。
2021-12-11 14:46:04 2.66MB c++ pl0 编译器
1
PL0源码C语言版本 编译原理 //A.2 C 版 本 /*编译和运行环境: *1Visual C++6.0,VisualC++.NET and Visual C++.NET 2003 *WinNT, Win 200, WinXP and Win2003 *2 gcc version 3.3.2 20031022(Red Hat Linux 3.3.2-1) *Redhat Fedora core 1 *Intel 32 platform *使用方法: *运行后输入PL/0 源程序文件名 *回答是否输出虚拟机代码 *回答是否输出名字表 *fa.tmp 输出虚拟机代码 *fa1.tmp 输出源文件及其各行对应的首地址 *fa2.tmp 输出结果 *fas.tmp 输出名字表 */
2021-11-26 19:34:09 229KB PL0源码C语言版本
1