SLR(0)分析c语言程序

时间:2014-07-09 07:32:51
【文件属性】:

文件名称:SLR(0)分析c语言程序

文件大小:1.98MB

文件格式:RAR

更新时间:2014-07-09 07:32:51

SLR(O)

#include #include #include #include using namespace std; #include #include #define size 200 struct word { char data[20]; char sign[10]; int aa; int bb; float num; }; typedef struct node { int style; int data; struct node *next; }linkstack; linkstack *top; string analysis[55][30]; char V[31]={'m','(',')','{','}',',',';','a','c','t','f','l','i','w','d','+','-','*','/','=','T','X','Y','Z','S','E','L','A','F','#','P'}; char act[24]={'P','T','T','X','Y','Y','Y','Y','Z','Z','S','S','S','S','L','L','E','E','E','A','A','A','F','F'}; int act1[24]={8,1,3,2,1,1,1,1,1,3,4,3,5,6,1,2,3,3,1,3,3,1,3,1}; struct word w[size]; string s[40]={"auto","break","case","char","const","continue","default","do","double","else","enum","extern","float", "for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch", "typedef","union","unsigned","void","volatile","while"};


【文件预览】:
SLR(0)
----词法分析主表.txt(2KB)
----5.cpp(19KB)
----文法.txt(369B)
----SLR(1)分析表.xlsx(21KB)
----5.dsp(3KB)
----5.plg(729B)
----1.txt(134B)
----语法分析结果.txt(4KB)
----Debug()
--------bianyi.pch(1.97MB)
--------bianyi.pdb(1.08MB)
--------bianyi.obj(213KB)
--------bianyi.exe(556KB)
--------vc60.pdb(108KB)
--------5.ilk(838KB)
--------vc60.idb(97KB)
--------5.obj(363KB)
--------5.pdb(1.13MB)
--------bianyi.ilk(792KB)
--------5.pch(1.97MB)
--------5.exe(600KB)
----5.dsw(510B)
----5.opt(48KB)
----liu.txt(27B)
----LR(0)项目集族.PNG(182KB)
----2.txt(138B)
----5.ncb(41KB)

网友评论

  • 可以成功运行,基本功能都实现了