文件名称:LEX
- 所属分类:
- 其它资源
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 1.07mb
- 下载次数:
- 0次
- 提 供 者:
- 元*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
下载
别用迅雷、360浏览器下载。
如迅雷强制弹出,可右键点击选“另存为”。
失败请重下,重下不扣分。
如迅雷强制弹出,可右键点击选“另存为”。
失败请重下,重下不扣分。
介绍说明--下载内容均来自于网络,请自行研究使用
词法分析时,常常会用到超前搜索方法。如当前待分析字符串为“a +”,当前字符为’ ’,此时,分析器倒底是将其分析为大于关系运算符还是大于等于关 系运算符呢?显然,只有知道下一个字符是什么才能下结论。于是分析器读入下一个字符’+’,这时可知应将’ ’解释为大于运算符。但此时,超前读了一个字符’+’,所以要回退一个字符,词法分析器才能正常运行。在分析标识符,无符号整数等时也有类似情况。-Lexical analysis, often use advanced search method. If the current to be analysed for "a+" string, the current characters to ", this time, is really the parser analysis for greater than or equal to relational operators greater than shut is operator? Obviously, only know the next character is what will jump to conclusions. So the parser read the next character + , then CPC should be explanation for greater than operator. But at the moment, the leading read a characters + , so want to back a character, lexical analyzer to normal operation. On the analysis of the identifier, unsigned integer etc also has a similar situation.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
词法分析\M9KU]Z)CVK$OQ8JXTVJDGCK.jpg
........\Q%5QH0X8[GBXG}9I8T$SXJI.jpg
........\$C1$`IOGB9_~_2SG]ZPD$5W.jpg
........\DU}R8]MJSO6VQK_$P8MC4CN.jpg
........\source.txt
........\a.cpp
........\Thumbs.db
........\a.dsp
........\Debug\vc60.idb
........\.....\vc60.pdb
........\.....\a.pch
........\.....\a.obj
........\.....\a.ilk
........\.....\a.exe
........\.....\a.pdb
........\a.ncb
........\a.plg
........\a.opt
........\a.dsw
........\Debug
词法分析
........\Q%5QH0X8[GBXG}9I8T$SXJI.jpg
........\$C1$`IOGB9_~_2SG]ZPD$5W.jpg
........\DU}R8]MJSO6VQK_$P8MC4CN.jpg
........\source.txt
........\a.cpp
........\Thumbs.db
........\a.dsp
........\Debug\vc60.idb
........\.....\vc60.pdb
........\.....\a.pch
........\.....\a.obj
........\.....\a.ilk
........\.....\a.exe
........\.....\a.pdb
........\a.ncb
........\a.plg
........\a.opt
........\a.dsw
........\Debug
词法分析