?? lex.1
字號:
.TH LEX 1 .SH NAMElex \- generator of lexical analysis programs.SH SYNOPSIS.B lex[.B \-tvfn] [ file ] ....SH DESCRIPTION.I Lexgenerates programs to be used in simple lexical analyis of text.The input.I files(standard input default)contain regular expressionsto be searched for, and actions written in C to be executed whenexpressions are found..PPA C source program, `lex.yy.c' is generated, to be compiled thus:.IPcc lex.yy.c \-ll.LPThis program, when run, copies unrecognized portions ofthe input to the output,and executes the associatedC action for each regular expression that is recognized..PPThe following .I lexprogram converts upper case to lower,removes blanks at the end of lines,and replaces multiple blanks by single blanks..IP "".nf.ta \w'[A\-Z] 'u%%[A\-Z] putchar(yytext[0]+\'a\'\-\'A\');[ ]+$[ ]+ putchar(\' \');.fi.PPThe options have the following meanings..TP.B \-tPlace the result on the standard output instead of in file`lex.yy.c'..TP.B \-vPrint a one-line summary of statistics of the generated analyzer..TP.B \-nOpposite of.BR \-v ;.B \-nis default..TP.B \-f`Faster' compilation: don't bother to packthe resulting tables; limited to small programs..SH "SEE ALSO"yacc(1).brM. E. Lesk and E. Schmidt,.I LEX \- Lexical Analyzer Generator
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -