文件名称:test1.1.1
- 所属分类:
- 控制台(字符窗口)编程
- 资源属性:
- [Text]
- 上传时间:
- 2015-11-29
- 文件大小:
- 2kb
- 下载次数:
- 0次
- 提 供 者:
- 陈*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
编译原理的文法化简
输入:一个文本文件,里面的内容例如
position := initial + rate * 60
或者更复杂的,但是要符合给定语法
语法可以自定义,可借鉴参考课本P104的内容
最少要求要包括3个语句,例如语句表、for循环和赋值语句
处理:读入文本、处理、输出文本
输出:一个文本文件,对前面例子,里面内容例如
(标识符,position)
(赋值运算符,:=)
(标识符,initial)
(加法运算符,+)
(标识符,rate)
(乘法运算符,*)
(整数,60)
(分隔符, )
-Compiler theory of grammar simplification input: a text file, for example, the contents inside position: = initial+ rate* 60 or more complex, but to comply with a given Syntax can customize the content can draw reference textbooks P104 minimum requirements To include three statements, such as statements table, for loops and assignment process: read text, processing, output text output: a text file, for the previous example, which content such as (identifier, position) (assignment operator: =) (identifier, initial) (addition operator,+) (identifiers, rate) (the multiplication operator*) (integer, 60) (separator, )
输入:一个文本文件,里面的内容例如
position := initial + rate * 60
或者更复杂的,但是要符合给定语法
语法可以自定义,可借鉴参考课本P104的内容
最少要求要包括3个语句,例如语句表、for循环和赋值语句
处理:读入文本、处理、输出文本
输出:一个文本文件,对前面例子,里面内容例如
(标识符,position)
(赋值运算符,:=)
(标识符,initial)
(加法运算符,+)
(标识符,rate)
(乘法运算符,*)
(整数,60)
(分隔符, )
-Compiler theory of grammar simplification input: a text file, for example, the contents inside position: = initial+ rate* 60 or more complex, but to comply with a given Syntax can customize the content can draw reference textbooks P104 minimum requirements To include three statements, such as statements table, for loops and assignment process: read text, processing, output text output: a text file, for the previous example, which content such as (identifier, position) (assignment operator: =) (identifier, initial) (addition operator,+) (identifiers, rate) (the multiplication operator*) (integer, 60) (separator, )
(系统自动生成,下载前可以参看下载内容)
下载文件列表
test1.1.1.txt