文件名称:test1.3.1
-
所属分类:
- 标签属性:
- 上传时间:2015-12-10
-
文件大小:1.02kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
设计文法类,实现对文法G[S]=(Vt, Vn, P, S)的文件读写
文法的文件表示形式以及内存表示形式可自定义
文法就是3个集合+1个符号,重点(难点)就是产生式集合
产生式具有结构,可用于推导,是要特别注意的地方
如约定只读写产生式集合,一个示例如下(文件内容):
S -> a
S -> aSb
也即首个非终结符S为开始符号,然后分析得到里面的终结符集={a, b},非终结符集={S},产生式集(略)。
文法的文本形式可根据自己需要自由定义
例如,直接自己给出3个集合。
-Design grammar class, to achieve grammar G [S] = (Vt, Vn, P, S) of document literacy grammar file representation and memory representation can be customized grammar is three set+1 symbols Key (difficulty) is a collection of production with a production structure, can be used to derive, is paying particular attention to areas such as reading and writing production agreement only set an example as follows (file contents): S-> a S-> aSb That is the first non-end symbol S is the start symbol, and then get inside the terminator analysis set = {a, b}, nonterminals set = {S}, production sets (omitted). Text grammar can be freely defined according to their needs, for example, direct yourself to give three sets.
文法的文件表示形式以及内存表示形式可自定义
文法就是3个集合+1个符号,重点(难点)就是产生式集合
产生式具有结构,可用于推导,是要特别注意的地方
如约定只读写产生式集合,一个示例如下(文件内容):
S -> a
S -> aSb
也即首个非终结符S为开始符号,然后分析得到里面的终结符集={a, b},非终结符集={S},产生式集(略)。
文法的文本形式可根据自己需要自由定义
例如,直接自己给出3个集合。
-Design grammar class, to achieve grammar G [S] = (Vt, Vn, P, S) of document literacy grammar file representation and memory representation can be customized grammar is three set+1 symbols Key (difficulty) is a collection of production with a production structure, can be used to derive, is paying particular attention to areas such as reading and writing production agreement only set an example as follows (file contents): S-> a S-> aSb That is the first non-end symbol S is the start symbol, and then get inside the terminator analysis set = {a, b}, nonterminals set = {S}, production sets (omitted). Text grammar can be freely defined according to their needs, for example, direct yourself to give three sets.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
test1.3.1.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.