Annotation of researchv10dc/man/adm/man1/lex.1, revision 1.1

1.1     ! root        1: .TH LEX 1
        !             2: .CT 1 prog_other
        !             3: .SH NAME
        !             4: lex \(mi generator of lexical analysis programs
        !             5: .SH SYNOPSIS
        !             6: .B lex
        !             7: [
        !             8: .B -tvfn
        !             9: ]
        !            10: [
        !            11: .I file ...
        !            12: ]
        !            13: .SH DESCRIPTION
        !            14: .I Lex
        !            15: generates programs to be used in simple lexical analysis of text.
        !            16: The input
        !            17: .I files
        !            18: (standard input default)
        !            19: contain regular expressions
        !            20: to be searched for, and actions written in C to be executed when
        !            21: expressions are found.
        !            22: .PP
        !            23: A C source program,
        !            24: .F lex.yy.c
        !            25: is generated, to be compiled thus:
        !            26: .IP
        !            27: .B cc lex.yy.c -ll
        !            28: .LP
        !            29: This program, when run, copies unrecognized portions of
        !            30: the input to the output,
        !            31: and executes the associated
        !            32: C action for each regular expression that is recognized.
        !            33: .PP
        !            34: The options have the following meanings.
        !            35: .TP
        !            36: .B -t
        !            37: Place the result on the standard output instead of in file
        !            38: .FR lex.yy.c .
        !            39: .TP
        !            40: .B -v
        !            41: Print a one-line summary of statistics of the generated analyzer.
        !            42: .TP
        !            43: .B -n
        !            44: Opposite of
        !            45: .BR -v ;
        !            46: .B -n
        !            47: is default.
        !            48: .TP
        !            49: .B -f
        !            50: `Faster' compilation: don't bother to pack
        !            51: the resulting tables; limited to small programs.
        !            52: .SH EXAMPLES
        !            53: This program converts upper case to lower,
        !            54: removes blanks at the end of lines,
        !            55: and replaces multiple blanks by single blanks.
        !            56: .PP
        !            57: .EX
        !            58: %%
        !            59: [A-Z]  putchar(yytext[0]+\'a\'-\'A\');
        !            60: [ ]+$
        !            61: [ ]+   putchar(\' \');
        !            62: .EE
        !            63: .SH FILES
        !            64: .F lex.yy.c
        !            65: .SH "SEE ALSO"
        !            66: .IR yacc (1), 
        !            67: .IR sed (1)
        !            68: .br
        !            69: M. E. Lesk and E. Schmidt,
        !            70: `LEX\(emLexical Analyzer Generator', 
        !            71: this manual, Volume 2

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.