摘要: 1 /* 2 * LR(1) 语法分析 3 */ 4 #include 5 #include 6 #include 7 8 #include "Common.h" 9 #include "LRCal.h"10 #include "LRMigrate.h"11 #include "Stack.h"12 13 #define NEXTWORD(s) ((*(s)==0)?SYM_EOF:*((s)++))14 15 extern char *Grammer[];16 17 void LRParse(struct LRE 阅读全文
posted @ 2013-08-31 17:15 RexfieldVon 阅读(861) 评论(0) 推荐(0) 编辑
摘要: 1 /* 2 * LR 转换表 3 * + Goto 记录表 4 * + 状态转换表 5 */ 6 #include 7 #include 8 #include 9 10 #include "Common.h" 11 #include "Closure.h" 12 #include "LRCal.h" 13 #include "LRMigrate.h" 14 15 extern char *Grammer[]; 16 extern char ***GrammerRule; 17 18 /* 19 * 创建Goto记 阅读全文
posted @ 2013-08-31 10:50 RexfieldVon 阅读(1055) 评论(0) 推荐(0) 编辑