www.pudn.com > bianyi大作业.zip > GrammarTable.h


//GrammarTable.h 
struct FormularyWord 
{ 
	char WordType; 
	double Number; 
}; 
 
const WORD GrammarTable[13][13]= 
{ 
	0,0,0,0,0,0,0,0,0,0,1,0,3, 
	0,0,0,0,0,0,1,0,0,0,3,0,3, 
	0,0,0,0,0,0,3,0,0,0,3,0,3, 
	0,0,0,0,0,0,3,1,0,0,3,0,3, 
	0,0,0,0,0,0,3,3,0,0,3,0,3, 
	0,0,0,0,0,0,3,3,1,0,3,0,3, 
	0,0,1,2,2,2,0,0,0,2,0,2,0, 
	0,0,0,0,1,2,0,0,0,2,0,2,0, 
	0,0,0,0,1,2,0,0,0,2,0,2,0, 
	1,2,2,2,2,2,0,0,0,2,0,2,0, 
	0,0,0,0,0,0,3,3,3,0,3,0,3, 
	0,0,0,0,0,0,3,3,3,0,3,0,3, 
	2,2,2,2,2,2,0,0,0,2,0,2,1 
}; 
 
enum COMPARE 
{ 
	__UNKNOWN__=0, 
	__EQUAL__  =1, 
	__LESS__   =2, 
	__MORE__   =3 
};