DataMuseum.dk

Presents historical artifacts from the history of:

ICL Comet 32

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about ICL Comet 32

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download

⟦1138ef3ef⟧ TextFile

    Length: 1414 (0x586)
    Types: TextFile
    Notes: UNIX file
    Names: »lex.1«

Derivation

└─⟦26887b7e0⟧ Bits:30009717 Comet 32 harddisk image
    └─⟦28c352965⟧ »/a« UNIX Filesystem
        └─⟦this⟧ »usr/man/man1/lex.1« 

TextFile

.ig
	@(#)lex.1	2.1	7/1/84
	@(#)Copyright (C) 1983 by National Semiconductor Corp.
..
.TH LEX 1
.SH NAME
lex \- generator of lexical analysis programs
.SH SYNOPSIS
.B lex
[
.B \-tvfn
] [ file ] ...
.SH DESCRIPTION
.I Lex
generates programs to be used in simple lexical analyis of text.
The input
.I files
(standard input default)
contain regular expressions
to be searched for, and actions written in C to be executed when
expressions are found.
.PP
A C source program, `lex.yy.c' is generated, to be compiled thus:
.IP
cc lex.yy.c \-ll
.LP
This program, when run, copies unrecognized portions of
the input to the output,
and executes the associated
C action for each regular expression that is recognized.
.PP
The following 
.I lex
program 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
.PP
The options have the following meanings.
.TP
.B \-t
Place the result on the standard output instead of in file
`lex.yy.c'.
.TP
.B \-v
Print a one-line summary of statistics of the generated analyzer.
.TP
.B \-n
Opposite of
.BR \-v ;
.B \-n
is default.
.TP
.B \-f
`Faster' compilation: don't bother to pack
the resulting tables; limited to small programs.
.SH "SEE ALSO"
yacc(1), sed(1)
.br
M. E. Lesk and E. Schmidt,
.I LEX \- Lexical Analyzer Generator