编译原理实验词法生成器C语言编写代码部分程序:#include#include#include#includecharprog[80],token[8],ch;intsyn,p,m,n,sum;char*rwtab[6]={"begin","if","then","while","do","end"};scaner();main(){p=0;printf("\n