You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
词法单元的识别<br />
词法分析器要求能够检查输入字符串,在前缀中找出<br />
和某个模式匹配的词素。<br />
首先通过正则定义来描述各种词法单元的模式。<br />
定义wsà(blank | tab | newline)+来消除空白<br />
词法分析器识别到这个模式时,不返回词法单元,继续<br />
识别其它模式。