摘要: 上一编文章中的词法分析没有写全,还不能识别关键字,小女继续添加识别关键字的功能.void toker(char* cinput ,scrWord *wordTable){// cinput输入的单词, wordTable单词表之后讲解 int Wordlen=strlen(cinput);//得到输入串的长度 scrWord *lpWordTable=wordTable; char* lexemBegin=cinput;//串的开始指针 char* lexemEnd=cinput; //串的结束指针 bool isNewWord=false;//是否是新词单 ... 阅读全文
posted @ 2012-05-16 09:11 百合莲子 阅读(1844) 评论(8) 推荐(1) 编辑