AT&T UNIX™PC Unix System V Users Manual - tenox
AT&T UNIX™PC Unix System V Users Manual - tenox AT&T UNIX™PC Unix System V Users Manual - tenox
LEX(l) LEX(l) EXAMPLE character define the string on the left to be the remainder of the line; it can be called out later by surrounding it with {}. Note that curly brackets do not imply parentheses; only string substitution is done. D %% if [a-z]+ O{D}+ {D}+ "++" "+" "I* " [0-9] printf("IF statement\n"); printf("tag, value %s\n",yytext); printf("octal number %s\n",yytext); printf("decimal number %s\n",yytext); printf("unary op\n"); printf("binary op\n"); { loop: while (input() != '*'); switch (input()) } { case 1/ 1: break; case '*': unput('*'); default: go to loop; } The external names generated by lex all begin with the prefix yy or YY. The flags must appear before any files. The flag -r indicates � RATFOR actions, -c indicates C actions and is the default, -t causes the lex.yy.c program to be written instead to standard output, -v provides a one-line summary of statistics of the machine generated, -n will not print out the - summary. Multiple files are treated as a single file. If no files are specified, standard input is used. Certain table sizes for the resulting finite state machine can be set in the definitions section: %p n number of positions is n (default 2000) %n n number of states is n (500) %t n number of parse tree nodes is n (1000) %a n number of transitions is n (3000) The use of one or more of the above automatically implies the -v option, unless the -n option is used. SEE ALSO yacc(l). LEX-Lexical Analyzer Generator by M. E. Lesk and E. Schmidt. � BUGS The -r option is not yet fully operational. - 2- 1
LINE(l) NAME line - read one line SYNOPSIS line LINE(l) DESCRIPTION Line copies one line (up to a new-line) from the standard input and writes it on the standard output. It returns an exit code of 1 on EOF and always prints at least a new-line. It is often used within shell files to read from the user's terminal. SEE ALSO sh(1), read(2). - 1 -
- Page 348 and 349: HP(l) HP (1) is adjacent to an ASCl
- Page 351: ID ( 1 ) ID ( 1) NAME id - print us
- Page 355 and 356: IPCS ( 1) IPCS ( 1) NAME ipcs - rep
- Page 357 and 358: IPCS ( 1 ) OWNER GROUP CREATOR CGRO
- Page 359 and 360: JOIN ( 1 ) JOIN ( 1 ) NAME join - r
- Page 361: KILL (I) KILL(l) NAME kill - termin
- Page 364 and 365: KSH(l) KSH ( 1) A command is either
- Page 366 and 367: KSH ( 1) KSH ( 1) The following exp
- Page 368 and 369: KSH ( 1) KSH ( 1) ${parameter%patte
- Page 370 and 371: KSH ( 1) KSH(l) with the parameter
- Page 372 and 373: KSH ( 1) KSH(l) redirected using a
- Page 374 and 375: KSH ( 1) KSH(l) variables whose sco
- Page 376 and 377: KSH ( 1 ) KSH(l) Command Re-entry.
- Page 378 and 379: KSH(l) KSH(l) using paper terminals
- Page 380 and 381: KSH ( 1) KSH ( 1) [count]Tc Equival
- Page 382 and 383: KSH ( 1) KSH(I) Line feed and print
- Page 384 and 385: KSH ( 1 ) KSH ( 1) fc -e - [ old= n
- Page 386 and 387: KSH ( 1 ) KSH(l) ?, the remainder o
- Page 388 and 389: KSH (l) KSH(l) test [ expr ] Evalua
- Page 390 and 391: KSH ( 1 ) KSH(l) ulimit [ -cdfmpt 1
- Page 393 and 394: LD ( 1 ) LD (1) NAME ld - link edit
- Page 395: LD ( 1 ) FILES LD ( 1) allow compat
- Page 401 and 402: LINT ( l ) LINT ( 1 ) NAME lint - a
- Page 403: LOGNAME ( l ) LOGNAME ( l ) NAME lo
- Page 406 and 407: I� �- '--- . ·
- Page 408 and 409: LP (l) LP (l) -ooption Specify prin
- Page 410 and 411: LPSTAT (l) LPSTAT (l) SEE ALSO enab
- Page 412 and 413: LS (l) LS (l) -f Force each argumen
- Page 415 and 416: M4 ( 1 ) M4 ( 1) NAME m4 - macro pr
- Page 417 and 418: M4 (1) undivert divnum dnl if else
- Page 419 and 420: MAIL ( 1) MAIL (l) NAME mail, rmail
- Page 421 and 422: MAKE(l) MAKE(l) NAME make - maintai
- Page 423 and 424: MAKE ( I) MAKE (l) MAKEFLAGS macro
- Page 425 and 426: MAKE(l) MAKE (I) .C .C - .Sh .sh- .
- Page 427 and 428: MAKE (l) MAKE (l) In the above exam
- Page 429 and 430: MAKEKEY (l) (Domestic Version Only
- Page 431 and 432: MESG ( 1) MESG ( 1) NAME mesg - per
- Page 433 and 434: MESSAGE( ! ) ( AT&T UNIX PC only )
- Page 435: MKDIR (l) MKDIR (l) NAME mkdir - ma
- Page 438 and 439: MM (l) HINTS MM (l) Mm reads the st
- Page 440 and 441: i�
- Page 442 and 443: MORE(l) MORE (l) stand-out mode, mo
- Page 444 and 445: MORE( I) MORE(l) The terminal is se
- Page 446 and 447: NEWFORM ( l ) -ck -pn -an NEWFORM (
LINE(l)<br />
NAME line - read one line<br />
SYNOPSIS<br />
line<br />
LINE(l)<br />
DESCRIPTION<br />
Line copies one line (up to a new-line) from the standard input<br />
and writes it on the standard output. It returns an exit code of 1<br />
on EOF and always prints at least a new-line. It is often used<br />
within shell files to read from the user's terminal.<br />
SEE ALSO<br />
sh(1), read(2).<br />
- 1 -