文件名称:pl0
- 所属分类:
- 编译器/词法分析
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 119kb
- 下载次数:
- 0次
- 提 供 者:
- 潘**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
本程序基于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*
完成以下内容:
(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 | ||
...........\InputDlg.h | ||
...........\PL0.cpp | ||
...........\pl0.h | ||
...........\Pl0Compiler.aps | ||
...........\Pl0Compiler.clw | ||
...........\Pl0Compiler.cpp | ||
...........\Pl0Compiler.dsp | ||
...........\Pl0Compiler.dsw | ||
...........\Pl0Compiler.h | ||
...........\Pl0Compiler.ncb | ||
...........\Pl0Compiler.opt | ||
...........\Pl0Compiler.plg | ||
...........\Pl0Compiler.rc | ||
...........\Pl0Compiler.sln | ||
...........\Pl0Compiler.suo | ||
...........\Pl0CompilerDlg.cpp | ||
...........\Pl0CompilerDlg.h | ||
...........\ReadMe.txt | ||
...........\res\bitmap1.bmp | ||
...........\...\Master.manifest | ||
...........\...\Pl0Compiler.ico | ||
...........\...\Pl0Compiler.rc2 | ||
...........\resource.h | ||
...........\StdAfx.cpp | ||
...........\StdAfx.h | ||
...........\新建 文本文档.txt | ||
测试用例及测试结果(生成4个文件)\Test for | 注释 | 字符,数组\fa.tmp |
...............................\........................\fa1.tmp | ||
...............................\........................\fa2.tmp | ||
...............................\........................\fas.tmp | ||
...............................\........................\Test.PL0 | ||
...............................\.....if then else 和不等号\fa.tmp | ||
...............................\..........................\fa1.tmp | ||
...............................\..........................\fa2.tmp | ||
...............................\..........................\fas.tmp | ||
...............................\..........................\Test.PL0 | ||
...............................\....++--\fa.tmp | ||
...............................\........\fa1.tmp | ||
...............................\........\fa2.tmp | ||
...............................\........\fas.tmp | ||
...............................\........\Test ++--.PL0 | ||
...............................\.....= -= 乘= 除=\fa.tmp | ||
...............................\.................\fa1.tmp | ||
...............................\.................\fa2.tmp | ||
...............................\.................\fas.tmp | ||
...............................\.................\Test.PL0 | ||
Pl0Compiler\res | ||
测试用例及测试结果(生成4个文件)\Test for | 注释 | 字符,数组 |
...............................\Test if then else 和不等号 | ||
...............................\Test++-- | ||
...............................\Test+= -= 乘= 除= | ||
Pl0Compiler | ||
测试用例及测试结果(生成4个文件) |