LEX學習 第二節

接着第一節中的第一個示例,我們擴展第二個示例,將詞法分析程序擴展爲識別不同的詞性。 下面是程序示例: %{ /* * 擴展第一個示例以識別其他的詞性 * */ %} %% [ \t ]+ /* 忽略空白 */; is | am | are | were | was | be | being | been | do | does | did | will | would | should
相關文章
相關標籤/搜索