C语言词法分析器_源代码

时间:2013-11-10 04:36:27
【文件属性】:

文件名称:C语言词法分析器_源代码

文件大小:19KB

文件格式:TXT

更新时间:2013-11-10 04:36:27

C语言词法分析器

C语言词法分析器 #include #include #include char *key0[]={" ","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","_Complex","_Imaginary","union","unsigned","void","volatile","while"}; /*保留字表*/ char *key1[]={" ","(",")","[","]","{","}",",",";","'"}; /*分隔符表*/ char *key2[]={" ","+","-","*","/","%","<",">","==",">=","<=","!=","!","&&","||","<<",">>","~","|","^","&","=","?:","->","++","--",".","+=","-=","*=","/="}; /*运算符表*/ int xx0[35],xx1[10],xx2[31]; .......


网友评论

  • 值得参考1111
  • 很不错,看了后大致可以弄懂流程了
  • 可以用,但是没注释
  • 不错不错 值得参考
  • 还行吧,给了初学者一个参考和一个方向
  • 编译原理课程的上机作业,一直没思路,分享up主的代码,很有收获
  • 刚开始学编译原理时不知道从哪里下手,看了楼主的代码后有了很大启发,谢啦!
  • 不错可以参考
  • 挺好用的,感谢。
  • 非常好用,正在学这方面的东西,值得借鉴
  • 代码不错,可以作为参照!
  • 好东西,可以用,
  • 具有借鉴作用
  • 很好用,不错不错
  • 代码还行,可以借鉴
  • 代码还行,可以借鉴
  • 好东西 对我帮助很大
  • 有bug啊,但还是有参考价值
  • 还好 ,挺全面的
  • 可以好好地学习学习
  • 挺好的,可惜自己不会写,交作业来用的。
  • 很不错,就是算法有些繁琐
  • 要是用压缩包就好了!但是真的很典型哦
  • 挺好用的,做的不错
  • 代码还行,可以借鉴