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","sta tic","struct","switch","typedef","_Complex","_Imaginary","union","unsigned","void","volatile","while"}; /*保留字表*/ char *key1[]={" ","(",")","[","]","{","}",",",";","'"}; /*分隔符表*/ char *key2[]={" ","+","-","*","/","%","","==",">=","","++","--",".","+=","-=","*=","/="}; /*运算符表*/ int xx0[35],xx1[10],xx2[31]; ....... tic","struct","switch","typedef","_Complex","_Imaginary","union","unsigned","void","volatile","while"}; /*保留字表*/ char *key1[]={" ","(",")","[","]","{","}",",",";","'"}; /*分隔符表*/ char *key2[]={" ","+","-","*","/","%","","==",">=","","++","--",".","+=","-=","*=","/="}; /*运算符表*/ int xx0[35],xx1[10],xx2[31]; .......
下载地址
用户评论
值得参考1111
很不错,看了后大致可以弄懂流程了
可以用,但是没注释
不错不错 值得参考
还行吧,给了初学者一个参考和一个方向
编译原理课程的上机作业,一直没思路,分享up主的代码,很有收获
刚开始学编译原理时不知道从哪里下手,看了楼主的代码后有了很大启发,谢啦!
不错可以参考
挺好用的,感谢。
非常好用,正在学这方面的东西,值得借鉴