用户名: 密   码:
   飞诺网 加入收藏
飞诺网 软件编程 C C++ Java VB Delphi Foxpro 汇编语言 游戏开发 移动开发 软件工程师 软工与管理 VC shell编程 C#
VC技术文档 VC系列教程

您当前的位置:飞诺网 >>  软件编程 >>  VC >> VC技术文档

[VC MFC C++ flex bison] flex format

www.diybl.com    时间 : 2008-02-02  作者:佚名   编辑:本站 点击:   [ 评论 ]

definitions
%%
rules
%%
user code
 

 

name definition

The "name" is a word beginning with a letter or an underscore (''_'') followed by zero or more letters, digits, ''_'', or ''-'' (dash). The definition is taken to begin at the first non-white-space character following the name and continuing to the end of the line. The definition can subsequently be referred to using "{name}", which will expand to "(definition)". For example,

DIGIT    [0-9]ID       [a-z][a-z0-9]*

defines "DIGIT" to be a regular expression which matches a single digit, and "ID" to be a regular expression which matches a letter followed by zero-or-more letters-or-digits. A subsequent reference to

{DIGIT}+"."{DIGIT}*

is identical to

([0-9])+"."([0-9])*


如果图片或页面不能正常显示请点击这里
VC技术文档推荐文章

文章评论