词法分析器实验一.docVIP

  • 10
  • 0
  • 约7.16千字
  • 约 8页
  • 2015-08-15 发布于重庆
  • 举报
词法分析器实验一.doc

一源代码: #include iostream #includemath.h #includestring #includestdlib.h #includestdio.h #includefstream using namespace std; string key[34]={main, auto,short,int,long,float,double,char,struct ,union,enum,typedef,const,unsigned,signed,extern,register ,static,volatile,void,if,else,switch,case,for ,do,while,goto,continue,break,default,sizeof,return}; string symbol[26]={ =,+,-,*,/,++,--,+=,-=, *=,/=,==,!=,,,=,=,(, ),[,],{,},,,:,; }; char ch; ///存放最新读进的源程序字符 string strTok

文档评论(0)

1亿VIP精品文档

相关文档