搜索资源列表
LR0
- (1)构造文法G的LR(0)项目 (2)构造文法G的LR(0)项目集规范族及识别活前缀的DFA (3)证明文法G不是LR(0)文法而是SLR(1)文法,并构造SLR(1)分析表 (4)设计LR语法分析程序,且能输出分析过程 (5)列举两个例子测试语法分析程序(识别失败一例,识别成功一例,后者推导步骤不得少于10步) -(1) construct grammar G of the LR (0) item (2) construct grammar G of the LR (0)
LR1
- 利用字符二维数组对文法、First集、Follow集、终结符集、非终结符集等数据进行存储,还有一个是状态表存储DFA的状态。二维TAB表对其中的DFA表进行存储,横坐标是状态号,纵坐标为文法中的符号(终结符和非终结符)。-Two-dimensional array of characters to use grammar, First Set, Follow sets, at the end of sets, sets and other non-terminator data storage,
lr0
- 对于LR文法,我们可以自动构造相应的LR分析表-LR grammar, we can automatically construct the corresponding LR parsing table
LR0
- LR0语法分析,要求:(1)直接输入根据己知文法构造的LR(0)分析表。 (2)输入已知文法的项目集规范族和转换函数,由程序自动生成LR(0)分析表; (3)输入已知文法,由程序自动生成LR(0)分析表。-LR0 parsing requirements: (1) direct input grammar based on the known structure of LR (0) Analysis Table. (2) Enter the known grammar of item