2012年3月20日

编译原理----词法分析程序----python语言版

摘要: 对python的应用还是不熟练,很多实用的方法没掌握,下面的程序本来是用C写的,为了练习一下python,又用python改写的,很粗糙,有bug,不过能运行出结果,嘿嘿,以后学好了python再来优化吧#-*-coding:cp936-*-Keyword=("begin","end","if","while","var","procedure","else","for","do","int",& 阅读全文

posted @ 2012-03-20 09:38 ma6174 阅读(3877) 评论(2) 推荐(0) 编辑

编译原理----词法分析程序----C语言版

摘要: #include<stdio.h>#include<string.h>#include<stdlib.h>charKeyWord[20][100]={"begin","end","if","while","var","procedure","else","for","do","int","read","write"};ch 阅读全文

posted @ 2012-03-20 09:30 ma6174 阅读(3942) 评论(0) 推荐(0) 编辑

导航