亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? flex.texi

?? 詞法分析器生成工具
?? TEXI
?? 第 1 頁 / 共 5 頁
字號:
@end example

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,

@example
DIGIT    [0-9]
ID       [a-z][a-z0-9]*
@end example

@noindent
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

@example
@{DIGIT@}+"."@{DIGIT@}*
@end example

@noindent
is identical to

@example
([0-9])+"."([0-9])*
@end example

@noindent
and matches one-or-more digits followed by a '.' followed
by zero-or-more digits.

The @var{rules} section of the @code{flex} input contains a series of
rules of the form:

@example
pattern   action
@end example

@noindent
where the pattern must be unindented and the action must
begin on the same line.

See below for a further description of patterns and
actions.

Finally, the user code section is simply copied to
@file{lex.yy.c} verbatim.  It is used for companion routines
which call or are called by the scanner.  The presence of
this section is optional; if it is missing, the second @samp{%%}
in the input file may be skipped, too.

In the definitions and rules sections, any @emph{indented} text or
text enclosed in @samp{%@{} and @samp{%@}} is copied verbatim to the
output (with the @samp{%@{@}}'s removed).  The @samp{%@{@}}'s must
appear unindented on lines by themselves.

In the rules section, any indented or %@{@} text appearing
before the first rule may be used to declare variables
which are local to the scanning routine and (after the
declarations) code which is to be executed whenever the
scanning routine is entered.  Other indented or %@{@} text
in the rule section is still copied to the output, but its
meaning is not well-defined and it may well cause
compile-time errors (this feature is present for @code{POSIX} compliance;
see below for other such features).

In the definitions section (but not in the rules section),
an unindented comment (i.e., a line beginning with "/*")
is also copied verbatim to the output up to the next "*/".

@node Patterns, Matching, Format, Top
@section Patterns

The patterns in the input are written using an extended
set of regular expressions.  These are:

@table @samp
@item x
match the character @samp{x}
@item .
any character (byte) except newline
@item [xyz]
a "character class"; in this case, the pattern
matches either an @samp{x}, a @samp{y}, or a @samp{z}
@item [abj-oZ]
a "character class" with a range in it; matches
an @samp{a}, a @samp, any letter from @samp{j} through @samp{o},
or a @samp{Z}
@item [^A-Z]
a "negated character class", i.e., any character
but those in the class.  In this case, any
character EXCEPT an uppercase letter.
@item [^A-Z\n]
any character EXCEPT an uppercase letter or
a newline
@item @var{r}*
zero or more @var{r}'s, where @var{r} is any regular expression
@item @var{r}+
one or more @var{r}'s
@item @var{r}?
zero or one @var{r}'s (that is, "an optional @var{r}")
@item @var{r}@{2,5@}
anywhere from two to five @var{r}'s
@item @var{r}@{2,@}
two or more @var{r}'s
@item @var{r}@{4@}
exactly 4 @var{r}'s
@item @{@var{name}@}
the expansion of the "@var{name}" definition
(see above)
@item "[xyz]\"foo"
the literal string: @samp{[xyz]"foo}
@item \@var{x}
if @var{x} is an @samp{a}, @samp, @samp{f}, @samp{n}, @samp{r}, @samp{t}, or @samp{v},
then the ANSI-C interpretation of \@var{x}.
Otherwise, a literal @samp{@var{x}} (used to escape
operators such as @samp{*})
@item \0
a NUL character (ASCII code 0)
@item \123
the character with octal value 123
@item \x2a
the character with hexadecimal value @code{2a}
@item (@var{r})
match an @var{r}; parentheses are used to override
precedence (see below)
@item @var{r}@var{s}
the regular expression @var{r} followed by the
regular expression @var{s}; called "concatenation"
@item @var{r}|@var{s}
either an @var{r} or an @var{s}
@item @var{r}/@var{s}
an @var{r} but only if it is followed by an @var{s}.  The text
matched by @var{s} is included when determining whether this rule is
the @dfn{longest match}, but is then returned to the input before
the action is executed.  So the action only sees the text matched
by @var{r}.  This type of pattern is called @dfn{trailing context}.
(There are some combinations of @samp{@var{r}/@var{s}} that @code{flex}
cannot match correctly; see notes in the Deficiencies / Bugs section
below regarding "dangerous trailing context".)
@item ^@var{r}
an @var{r}, but only at the beginning of a line (i.e.,
which just starting to scan, or right after a
newline has been scanned).
@item @var{r}$
an @var{r}, but only at the end of a line (i.e., just
before a newline).  Equivalent to "@var{r}/\n".

Note that flex's notion of "newline" is exactly
whatever the C compiler used to compile flex
interprets '\n' as; in particular, on some DOS
systems you must either filter out \r's in the
input yourself, or explicitly use @var{r}/\r\n for "r$".
@item <@var{s}>@var{r}
an @var{r}, but only in start condition @var{s} (see
below for discussion of start conditions)
<@var{s1},@var{s2},@var{s3}>@var{r}
same, but in any of start conditions @var{s1},
@var{s2}, or @var{s3}
@item <*>@var{r}
an @var{r} in any start condition, even an exclusive one.
@item <<EOF>>
an end-of-file
<@var{s1},@var{s2}><<EOF>>
an end-of-file when in start condition @var{s1} or @var{s2}
@end table

Note that inside of a character class, all regular
expression operators lose their special meaning except escape
('\') and the character class operators, '-', ']', and, at
the beginning of the class, '^'.

The regular expressions listed above are grouped according
to precedence, from highest precedence at the top to
lowest at the bottom.  Those grouped together have equal
precedence.  For example,

@example
foo|bar*
@end example

@noindent
is the same as

@example
(foo)|(ba(r*))
@end example

@noindent
since the '*' operator has higher precedence than
concatenation, and concatenation higher than alternation ('|').
This pattern therefore matches @emph{either} the string "foo" @emph{or}
the string "ba" followed by zero-or-more r's.  To match
"foo" or zero-or-more "bar"'s, use:

@example
foo|(bar)*
@end example

@noindent
and to match zero-or-more "foo"'s-or-"bar"'s:

@example
(foo|bar)*
@end example

In addition to characters and ranges of characters,
character classes can also contain character class
@dfn{expressions}.  These are expressions enclosed inside @samp{[}: and @samp{:}]
delimiters (which themselves must appear between the '['
and ']' of the character class; other elements may occur
inside the character class, too).  The valid expressions
are:

@example
[:alnum:] [:alpha:] [:blank:]
[:cntrl:] [:digit:] [:graph:]
[:lower:] [:print:] [:punct:]
[:space:] [:upper:] [:xdigit:]
@end example

These expressions all designate a set of characters
equivalent to the corresponding standard C @samp{isXXX} function.  For
example, @samp{[:alnum:]} designates those characters for which
@samp{isalnum()} returns true - i.e., any alphabetic or numeric.
Some systems don't provide @samp{isblank()}, so flex defines
@samp{[:blank:]} as a blank or a tab.

For example, the following character classes are all
equivalent:

@example
[[:alnum:]]
[[:alpha:][:digit:]
[[:alpha:]0-9]
[a-zA-Z0-9]
@end example

If your scanner is case-insensitive (the @samp{-i} flag), then
@samp{[:upper:]} and @samp{[:lower:]} are equivalent to @samp{[:alpha:]}.

Some notes on patterns:

@itemize -
@item
A negated character class such as the example
"[^A-Z]" above @emph{will match a newline} unless "\n" (or an
equivalent escape sequence) is one of the
characters explicitly present in the negated character
class (e.g., "[^A-Z\n]").  This is unlike how many
other regular expression tools treat negated
character classes, but unfortunately the inconsistency
is historically entrenched.  Matching newlines
means that a pattern like [^"]* can match the
entire input unless there's another quote in the
input.

@item
A rule can have at most one instance of trailing
context (the '/' operator or the '$' operator).
The start condition, '^', and "<<EOF>>" patterns
can only occur at the beginning of a pattern, and,
as well as with '/' and '$', cannot be grouped
inside parentheses.  A '^' which does not occur at
the beginning of a rule or a '$' which does not
occur at the end of a rule loses its special
properties and is treated as a normal character.

The following are illegal:

@example
foo/bar$
<sc1>foo<sc2>bar
@end example

Note that the first of these, can be written
"foo/bar\n".

The following will result in '$' or '^' being
treated as a normal character:

@example
foo|(bar$)
foo|^bar
@end example

If what's wanted is a "foo" or a
bar-followed-by-a-newline, the following could be used (the special
'|' action is explained below):

@example
foo      |
bar$     /* action goes here */
@end example

A similar trick will work for matching a foo or a
bar-at-the-beginning-of-a-line.
@end itemize

@node Matching, Actions, Patterns, Top
@section How the input is matched

When the generated scanner is run, it analyzes its input
looking for strings which match any of its patterns.  If
it finds more than one match, it takes the one matching
the most text (for trailing context rules, this includes
the length of the trailing part, even though it will then
be returned to the input).  If it finds two or more
matches of the same length, the rule listed first in the
@code{flex} input file is chosen.

Once the match is determined, the text corresponding to
the match (called the @var{token}) is made available in the
global character pointer @code{yytext}, and its length in the
global integer @code{yyleng}.  The @var{action} corresponding to the
matched pattern is then executed (a more detailed
description of actions follows), and then the remaining input is
scanned for another match.

If no match is found, then the @dfn{default rule} is executed:
the next character in the input is considered matched and
copied to the standard output.  Thus, the simplest legal
@code{flex} input is:

@example
%%
@end example

which generates a scanner that simply copies its input
(one character at a time) to its output.

Note that @code{yytext} can be defined in two different ways:
either as a character @emph{pointer} or as a character @emph{array}.
You can control which definition @code{flex} uses by including
one of the special directives @samp{%pointer} or @samp{%array} in the
first (definitions) section of your flex input.  The
default is @samp{%pointer}, unless you use the @samp{-l} lex
compatibility option, in which case @code{yytext} will be an array.  The
advantage of using @samp{%pointer} is substantially faster
scanning and no buffer overflow when matching very large
tokens (unless you run out of dynamic memory).  The
disadvantage is that you are restricted in how your actions can
modify @code{yytext} (see the next section), and calls to the
@samp{unput()} function destroys the present contents of @code{yytext},
which can be a considerable porting headache when moving
between different @code{lex} versions.

The advantage of @samp{%array} is that you can then modify @code{yytext}
to your heart's content, and calls to @samp{unput()} do not
destroy @code{yytext} (see below).  Furthermore, existing @code{lex}
programs sometimes access @code{yytext} externally using
declarations of the form:
@example
extern char yytext[];
@end example
This definition is erroneous when used with @samp{%pointer}, but
correct for @samp{%array}.

@samp{%array} defines @code{yytext} to be an array of @code{YYLMAX} characters,
which defaults to a fairly large value.  You can change
the size by simply #define'ing @code{YYLMAX} to a different value
in the first section of your @code{flex} input.  As mentioned
above, with @samp{%pointer} yytext grows dynamically to
accommodate large tokens.  While this means your @samp{%pointer} scanner
can accommodate very large tokens (such as matching entire
blocks of comments), bear in mind that each time the
scanner must resize @code{yytext} it also must rescan the entire
token from the beginning, so matching such tokens can
prove slow.  @code{yytext} presently does @emph{not} dynamically grow if
a call to @samp{unput()} results in too much text being pushed
back; instead, a run-time error results.

Also note that you cannot use @samp{%array} with C++ scanner
classes (the @code{c++} option; see below).

@node Actions, Generated scanner, Matching, Top
@section Actions

Each pattern in a rule has a corresponding action, which
can be any arbitrary C statement.  The pattern ends at the
first non-escaped whitespace character; the remainder of
the line is its action.  If the action is empty, then when
the pattern is matched the input token is simply
discarded.  For example, here is the specification for a
program which deletes all occurrences of "zap me" from its
input:

@example
%%

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品传媒视频| 狠狠色丁香久久婷婷综合丁香| 精品不卡在线视频| 国产麻豆精品95视频| 韩日欧美一区二区三区| 日韩不卡一区二区| 蜜臀精品一区二区三区在线观看 | 舔着乳尖日韩一区| 亚洲欧美国产三级| 又紧又大又爽精品一区二区| 国产精品伦一区| 亚洲在线视频一区| 天堂av在线一区| 狠狠色丁香婷综合久久| 国产999精品久久久久久| 豆国产96在线|亚洲| 91黄色激情网站| 91精品国产欧美一区二区成人| 狠狠狠色丁香婷婷综合激情| 经典三级一区二区| 在线这里只有精品| 国产色综合一区| 亚洲国产精品一区二区www| 国产一区二区三区免费| 91蜜桃在线免费视频| 日韩午夜精品视频| 国产精品久久久久国产精品日日 | 久久99热狠狠色一区二区| 成a人片亚洲日本久久| 日韩一区二区高清| 午夜在线成人av| 欧美精品少妇一区二区三区| 韩国女主播成人在线| 色八戒一区二区三区| 精品国产一区二区国模嫣然| 欧美日产国产精品| 久久精品网站免费观看| 久久精品久久久精品美女| 欧美性一二三区| 一级女性全黄久久生活片免费| 国产精品18久久久久久久网站| 欧美日韩国产免费一区二区| 中文一区二区在线观看| 亚洲三级免费电影| 国产精品一区二区视频| 欧美精品一区二区三区在线播放| 亚洲国产日韩综合久久精品| 色婷婷av一区二区三区大白胸 | 国产一区二区福利| 欧美精品一区在线观看| 国产黄色精品视频| 中文字幕人成不卡一区| 99视频国产精品| 尤物视频一区二区| 欧美精品第1页| 久久 天天综合| 麻豆精品在线视频| 91女厕偷拍女厕偷拍高清| 亚洲少妇最新在线视频| 欧美久久久影院| 国产在线精品一区在线观看麻豆| 久久综合色播五月| 色94色欧美sute亚洲线路二| 日韩黄色片在线观看| 国产午夜精品久久久久久久 | 亚洲亚洲精品在线观看| 99麻豆久久久国产精品免费优播| 欧美国产综合一区二区| 成人午夜av电影| 亚洲国产视频在线| 久久综合五月天婷婷伊人| 一本色道综合亚洲| 国产精品综合视频| 亚洲国产成人av网| 亚洲久本草在线中文字幕| 精品对白一区国产伦| 91美女片黄在线| 99麻豆久久久国产精品免费 | 欧美午夜不卡在线观看免费| 一区二区三区视频在线观看| 日韩一区二区三区视频在线| 欧美性一区二区| 色婷婷av一区二区三区gif| 波多野洁衣一区| 国产成人三级在线观看| 狠狠色丁香久久婷婷综合丁香| 亚洲国产综合人成综合网站| 国产精品区一区二区三区| 欧美mv和日韩mv的网站| 91精品国产丝袜白色高跟鞋| 色94色欧美sute亚洲线路一久| 91丨九色丨蝌蚪丨老版| 蜜臀av一区二区在线观看| 91福利在线播放| 国产毛片精品视频| 国产91在线观看| 成人精品视频一区二区三区| 成人精品国产福利| 日本道精品一区二区三区| 欧美午夜片在线观看| 91精品国产综合久久久久| 精品国产a毛片| √…a在线天堂一区| 午夜精品久久久久久久| 国产麻豆精品95视频| 色婷婷狠狠综合| 日韩午夜小视频| **性色生活片久久毛片| 亚洲国产aⅴ天堂久久| 国产福利一区二区三区视频在线| av一二三不卡影片| 久久夜色精品国产噜噜av| 亚洲摸摸操操av| 国产一二三精品| 欧美一级黄色片| 亚洲欧美另类久久久精品| 激情久久五月天| 欧美精品一二三| 一片黄亚洲嫩模| 成人亚洲一区二区一| 欧美一卡二卡三卡四卡| 亚洲精品国久久99热| 成人亚洲一区二区一| 26uuu国产一区二区三区| 免费亚洲电影在线| 欧美精品粉嫩高潮一区二区| 亚洲欧美日韩一区二区| 大白屁股一区二区视频| 2022国产精品视频| 久久精品国产第一区二区三区| 欧美精品一二三区| 亚洲国产一区二区视频| 欧美伊人久久久久久久久影院| 国产精品美女久久久久久2018| 中文字幕va一区二区三区| 日本伊人午夜精品| 日韩欧美激情四射| 经典三级视频一区| 欧美大白屁股肥臀xxxxxx| 亚洲成人免费av| 欧美电影免费观看完整版| 麻豆91精品91久久久的内涵| 337p日本欧洲亚洲大胆色噜噜| 国产一区二区三区免费在线观看| 国产清纯美女被跳蛋高潮一区二区久久w | 91传媒视频在线播放| 亚洲国产aⅴ天堂久久| 欧美v日韩v国产v| 不卡高清视频专区| 日韩av一级电影| 中文在线一区二区| 欧美放荡的少妇| 成人视屏免费看| 午夜精品福利一区二区三区蜜桃| 日韩亚洲电影在线| 一本在线高清不卡dvd| 国精产品一区一区三区mba桃花 | 大桥未久av一区二区三区中文| 亚洲综合精品久久| 久久久久久久久蜜桃| 欧美三级午夜理伦三级中视频| 国产99久久久国产精品潘金| 亚洲一区视频在线| 中文字幕不卡在线观看| 精品国内二区三区| 91精品国产91热久久久做人人| 成人免费视频app| 国产资源在线一区| 久久国产精品99久久久久久老狼| 亚洲视频香蕉人妖| 国产精品美女久久久久久| 欧美日韩成人综合在线一区二区| 久久精品国产亚洲5555| 天堂久久久久va久久久久| 亚洲另类一区二区| 亚洲日本在线a| 亚洲色图第一区| 亚洲欧美一区二区三区久本道91 | 国产成人亚洲综合a∨猫咪| 极品少妇一区二区| 国产电影一区在线| 成人一级视频在线观看| 99久久777色| 91丨porny丨中文| 欧美日韩精品二区第二页| 制服丝袜亚洲色图| 久久久久久久久久久久久久久99| 久久综合五月天婷婷伊人| 中文字幕第一区综合| 亚洲女女做受ⅹxx高潮| 日韩在线一二三区| 精品夜夜嗨av一区二区三区| 国产成人亚洲综合色影视| 国产盗摄女厕一区二区三区| www.激情成人| 欧美挠脚心视频网站| 国产精品系列在线| 视频一区二区欧美| 99国产精品久久久久| 欧美一区二区在线免费播放|