flex the fast lexical analyser generator

a flex program consists of three sections, separeated by %%/.

一个flex 程序有三部分组成,这三部分由%%分开。

 

the first section contains declarations and option settings.

 

the second section is a list of partterns and actions.

 

the third section is c code that is copied to the generated scanner.

usually small routines related to the code in the actions.

 

 

 

 

posted on 2013-12-21 17:27  kwingmei  阅读(204)  评论(0编辑  收藏  举报

导航