pl0
所属分类:编译器/解释器
开发工具:Visual C++
文件大小:119KB
下载次数:37
上传日期:2012-05-10 18:40:15
上 传 者:
pfk
说明: 本程序基于PL0源码,
完成以下内容:
(1) 增加单词:保留字 ELSE,REPEAT,UNTIL,RETURN
运算符 +=,-=,++,--
(2) 修改单词:不等号# 改为 <>
(3) 增加条件语句的ELSE子句
(4) 扩充赋值运算:+= 和 -=
(5) 扩充语句 REPEAT
<语句序列>
UNTIL <条件>
其中,<条件>是循环条件,即条件不成立时,重复执行循环体的< 语句序列>; 条件成立时,循环结束。
(6) 增加运算:++ 和 --。
(7) 增加类型:① 字符类型; 。
(8) 扩充函数:① 有返回值和返回语句;。
(9) 增加一维数组类型(增加指令)。
(10) 扩充for语句
for(<语句>{,<语句>} 条件 表达式)
<语句>
(11) 扩充赋值运算符*=和-=
(12) 增加可以识别单行注释”//”和多行注释”/********/”
(13) 增加编译器的可视化界面
(14) 增加显示出错代码及原因
(This program is based on the the PL0 source,
Complete the following:
(1) to increase the word: reserved word ELSE, REPEAT, UNTIL, RETURN
Operator+ =,- =,+,-
(2) modify the words: inequality# changed <>
(3) increase in the ELSE clause of conditional statement
(4) expand the assignment operator:+ = and- =
(5) expansion of the statements REPEAT
<Sequence of statements
UNTIL <condition>
Conditions which, <> is the loop condition, ie, when the condition does not hold, repeat the loop body <sequence of statements> conditions are true, the loop ends.
(6) increase in computing:++ and-.
(7) increase the types: (1) character type
(8) expansion function: ① the return value and return statement
(9) increase in one-dimensional array type (increase instruction).
(10) expansion of the for statement
for (<statement> {<statement>} conditions expression)
<Statement>
(11) to expand the assignment operator*)
文件列表:
Pl0Compiler\InputDlg.cpp (1001, 2010-01-01)
Pl0Compiler\InputDlg.h (1213, 2010-01-01)
Pl0Compiler\PL0.cpp (43760, 2010-01-04)
Pl0Compiler\pl0.h (9330, 2010-01-04)
Pl0Compiler\Pl0Compiler.aps (120204, 2010-01-04)
Pl0Compiler\Pl0Compiler.clw (1759, 2010-01-04)
Pl0Compiler\Pl0Compiler.cpp (2103, 2010-01-01)
Pl0Compiler\Pl0Compiler.dsp (4582, 2010-01-02)
Pl0Compiler\Pl0Compiler.dsw (528, 2009-11-20)
Pl0Compiler\Pl0Compiler.h (1379, 2009-11-20)
Pl0Compiler\Pl0Compiler.ncb (156672, 2010-01-04)
Pl0Compiler\Pl0Compiler.opt (56832, 2010-01-04)
Pl0Compiler\Pl0Compiler.plg (256, 2010-01-04)
Pl0Compiler\Pl0Compiler.rc (6364, 2010-01-04)
Pl0Compiler\Pl0Compiler.sln (343, 2009-12-04)
Pl0Compiler\Pl0Compiler.suo (7168, 2009-12-04)
Pl0Compiler\Pl0CompilerDlg.cpp (4386, 2010-01-04)
Pl0Compiler\Pl0CompilerDlg.h (1530, 2010-01-04)
Pl0Compiler\res\bitmap1.bmp (1270, 2010-01-02)
Pl0Compiler\res\Master.manifest (693, 2010-01-01)
Pl0Compiler\res\Pl0Compiler.ico (98654, 2009-12-26)
Pl0Compiler\res\Pl0Compiler.rc2 (403, 2009-11-20)
Pl0Compiler\resource.h (1101, 2010-01-03)
Pl0Compiler\StdAfx.cpp (213, 2009-11-20)
Pl0Compiler\StdAfx.h (999, 2009-11-20)
Pl0Compiler\新建 文本文档.txt (453, 2010-01-03)
测试用例及测试结果(生成4个文件)\Test for,注释,字符,数组\fa.tmp (0, 2010-01-04)
测试用例及测试结果(生成4个文件)\Test for,注释,字符,数组\fa1.tmp (0, 2010-01-04)
测试用例及测试结果(生成4个文件)\Test for,注释,字符,数组\fa2.tmp (0, 2010-01-04)
测试用例及测试结果(生成4个文件)\Test for,注释,字符,数组\fas.tmp (0, 2010-01-04)
测试用例及测试结果(生成4个文件)\Test for,注释,字符,数组\Test.PL0 (130, 2010-01-04)
测试用例及测试结果(生成4个文件)\Test if then else 和不等号\fa.tmp (327, 2010-01-04)
测试用例及测试结果(生成4个文件)\Test if then else 和不等号\fa1.tmp (292, 2010-01-04)
测试用例及测试结果(生成4个文件)\Test if then else 和不等号\fa2.tmp (7, 2010-01-04)
测试用例及测试结果(生成4个文件)\Test if then else 和不等号\fas.tmp (22, 2010-01-04)
测试用例及测试结果(生成4个文件)\Test if then else 和不等号\Test.PL0 (125, 2010-01-04)
测试用例及测试结果(生成4个文件)\Test++--\fa.tmp (689, 2010-01-04)
测试用例及测试结果(生成4个文件)\Test++--\fa1.tmp (357, 2010-01-04)
测试用例及测试结果(生成4个文件)\Test++--\fa2.tmp (22, 2010-01-04)
... ...
近期下载者:
相关文件:
收藏者: