2.1.1
2.1.1
词法分析程序的基本功
词法分析程序的基本功
能
能
首先来看英文的词法分析:
分析后得到单词序列: ( 代词, you) 、 ( 动词,
can) 、 ( 动词, put) 、 ( 代词, your) 、 ……
程序的词法分析:
分析后得到单词序列: ($if,-) 、 ($open,-) 、 ($id,
position) 、 ($gt,-) 、 ($num, 10) 、 ($close,-) 、 ($i
d,rate) 、……
You can put your dream into reality through your efforts !
if (position > 10) rate = 3.14 * initial;