#include<stdio.h> #include<string.h> int n,p,zbm; char ch,code[1000],str[100]; void scaner(); void main() { printf("Please input the source code: "); p=0; do{ ch=getchar(); code[p++]=ch; }while(ch!='#'); printf(" Output the code: "); p=0; do{ scaner(); if(zbm==98)printf("%s",str); else if(zbm==99)printf("<error,%s>",str); else printf("<%d,%s>",zbm,str); }while(zbm!=0); printf(" "); } void scaner() { do{ ch=code[p++]; }while(ch==' '); n=0; if((ch>='A'&&ch<='Z')||(ch>='a'&&ch<='z')||ch=='_') { while((ch>='0'&&ch<='9')||(ch>='A'&&ch<='Z')||(ch>='a'&&ch<='z')||ch=='_') { str[n++]=ch; ch=code[p++]; } str[n++]='