欧业的博客Take one regular expression(identifier,etc) as example, and use flex to have a lexical analysis. 这里我选择一个正则表达式子,用flex这个软件来制作词法分析器。 下载flex 我用的是deepin系统(linux系统),...
暗夜独舞春上雪的博客目标要分析词法的对象是一种叫TINY+的计算机语言。下面是一个Example,char str;int x, fact;str:= 'sample program in TINY+ language- computes factorial';read x;if x>0 and x<100 then {don’t comput...