DataMuseum.dk

Presents historical artifacts from the history of:

RC9000

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

See our Wiki for more about RC9000

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download
Index: l

⟦16abe3102⟧

    Length: 2302 (0x8fe)
    Names: »lex.1«

Derivation

└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
    └─⟦bbf173f5c⟧ »0004« 
        └─⟦this⟧ »./usr/man/cat1/lex.1« 

Default Hex Dump

0x000…020 0a 0a 0a 5f 08 4f 5f 08 6e 5f 08 6c 5f 08 69 5f 08 6e 5f 08 65 20 5f 08 4d 5f 08 61 5f 08 6e 5f   ┆   _ O_ n_ l_ i_ n_ e _ M_ a_ n_┆
0x020…040 08 75 5f 08 61 5f 08 6c 20 20 20 20 20 20 20 20 20 20 20 20 20 55 73 65 72 20 43 6f 6d 6d 61 6e   ┆ u_ a_ l             User Comman┆
0x040…060 64 73 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6c 65 78 28 31 29 0a 0a 0a 0a   ┆ds                    lex(1)    ┆
0x060…080 4e 08 4e 08 4e 08 4e 41 08 41 08 41 08 41 4d 08 4d 08 4d 08 4d 45 08 45 08 45 08 45 0a 20 20 20   ┆N N N NA A A AM M M ME E E E    ┆
0x080…0a0 20 20 6c 65 78 20 2d 20 67 65 6e 65 72 61 74 6f 72 20 6f 66 20 6c 65 78 69 63 61 6c 20 61 6e 61   ┆  lex - generator of lexical ana┆
0x0a0…0c0 6c 79 73 69 73 20 70 72 6f 67 72 61 6d 73 0a 0a 53 08 53 08 53 08 53 59 08 59 08 59 08 59 4e 08   ┆lysis programs  S S S SY Y Y YN ┆
0x0c0…0e0 4e 08 4e 08 4e 54 08 54 08 54 08 54 41 08 41 08 41 08 41 58 08 58 08 58 08 58 0a 20 20 20 20 20   ┆N N NT T T TA A A AX X X X      ┆
0x0e0…100 6c 08 6c 08 6c 08 6c 65 08 65 08 65 08 65 78 08 78 08 78 08 78 20 5b 20 2d 08 2d 08 2d 08 2d 74   ┆l l l le e e ex x x x [ - - - -t┆
0x100…120 08 74 08 74 08 74 76 08 76 08 76 08 76 6e 08 6e 08 6e 08 6e 63 08 63 08 63 08 63 72 08 72 08 72   ┆ t t tv v v vn n n nc c c cr r r┆
0x120…140 08 72 66 08 66 08 66 08 66 20 5d 20 5b 20 66 69 6c 65 20 5d 20 2e 2e 2e 0a 0a 44 08 44 08 44 08   ┆ rf f f f ] [ file ] ...  D D D ┆
0x140…160 44 45 08 45 08 45 08 45 53 08 53 08 53 08 53 43 08 43 08 43 08 43 52 08 52 08 52 08 52 49 08 49   ┆DE E E ES S S SC C C CR R R RI I┆
0x160…180 08 49 08 49 50 08 50 08 50 08 50 54 08 54 08 54 08 54 49 08 49 08 49 08 49 4f 08 4f 08 4f 08 4f   ┆ I IP P P PT T T TI I I IO O O O┆
0x180…1a0 4e 08 4e 08 4e 08 4e 0a 20 20 20 20 20 5f 08 6c 5f 08 65 5f 08 78 20 67 65 6e 65 72 61 74 65 73   ┆N N N N      _ l_ e_ x generates┆
0x1a0…1c0 20 70 72 6f 67 72 61 6d 73 20 74 6f 20 62 65 20 75 73 65 64 20 69 6e 20 73 69 6d 70 6c 65 20 6c   ┆ programs to be used in simple l┆
0x1c0…1e0 65 78 69 63 61 6c 20 61 6e 61 6c 79 69 73 0a 20 20 20 20 20 6f 66 20 74 65 78 74 2e 20 20 54 68   ┆exical analyis      of text.  Th┆
0x1e0…200 65 20 69 6e 70 75 74 20 5f 08 66 5f 08 69 5f 08 6c 5f 08 65 5f 08 73 20 28 73 74 61 6e 64 61 72   ┆e input _ f_ i_ l_ e_ s (standar┆
0x200…220 64 20 69 6e 70 75 74 20 64 65 66 61 75 6c 74 29 20 63 6f 6e 74 61 69 6e 0a 20 20 20 20 20 72 65   ┆d input default) contain      re┆
0x220…240 67 75 6c 61 72 20 65 78 70 72 65 73 73 69 6f 6e 73 20 74 6f 20 62 65 20 73 65 61 72 63 68 65 64   ┆gular expressions to be searched┆
0x240…260 20 66 6f 72 20 61 6e 64 20 61 63 74 69 6f 6e 73 20 74 6f 20 62 65 0a 20 20 20 20 20 65 78 65 63   ┆ for and actions to be      exec┆
0x260…280 75 74 65 64 20 77 68 65 6e 20 65 78 70 72 65 73 73 69 6f 6e 73 20 61 72 65 20 66 6f 75 6e 64 2e   ┆uted when expressions are found.┆
0x280…2a0 20 20 54 68 65 73 65 20 6d 75 73 74 20 62 65 20 77 72 69 74 74 65 6e 0a 20 20 20 20 20 69 6e 20   ┆  These must be written      in ┆
0x2a0…2c0 43 2e 0a 0a 20 20 20 20 20 41 20 43 20 73 6f 75 72 63 65 20 70 72 6f 67 72 61 6d 2c 20 6c 65 78   ┆C.       A C source program, lex┆
0x2c0…2e0 2e 79 79 2e 63 20 69 73 20 67 65 6e 65 72 61 74 65 64 2c 20 74 6f 20 62 65 20 63 6f 6d 70 69 6c   ┆.yy.c is generated, to be compil┆
0x2e0…300 65 64 20 61 73 0a 20 20 20 20 20 73 68 6f 77 6e 2e 0a 0a 20 20 20 20 20 20 20 20 20 20 63 63 20   ┆ed as      shown.            cc ┆
0x300…320 6c 65 78 2e 79 79 2e 63 20 2d 6c 6c 0a 0a 20 20 20 20 20 54 68 69 73 20 70 72 6f 67 72 61 6d 2c   ┆lex.yy.c -ll       This program,┆
0x320…340 20 77 68 65 6e 20 72 75 6e 2c 20 63 6f 70 69 65 73 20 75 6e 72 65 63 6f 67 6e 69 7a 65 64 20 70   ┆ when run, copies unrecognized p┆
0x340…360 6f 72 74 69 6f 6e 73 20 6f 66 20 74 68 65 0a 20 20 20 20 20 69 6e 70 75 74 20 74 6f 20 74 68 65   ┆ortions of the      input to the┆
0x360…380 20 6f 75 74 70 75 74 2c 20 61 6e 64 20 65 78 65 63 75 74 65 73 20 74 68 65 20 61 73 73 6f 63 69   ┆ output, and executes the associ┆
0x380…3a0 61 74 65 64 20 43 20 61 63 74 69 6f 6e 0a 20 20 20 20 20 66 6f 72 20 65 61 63 68 20 72 65 67 75   ┆ated C action      for each regu┆
0x3a0…3c0 6c 61 72 20 65 78 70 72 65 73 73 69 6f 6e 20 74 68 61 74 20 69 73 20 72 65 63 6f 67 6e 69 7a 65   ┆lar expression that is recognize┆
0x3c0…3e0 64 2e 0a 0a 20 20 20 20 20 54 68 65 20 6f 70 74 69 6f 6e 73 20 68 61 76 65 20 74 68 65 20 66 6f   ┆d.       The options have the fo┆
0x3e0…400 6c 6c 6f 77 69 6e 67 20 6d 65 61 6e 69 6e 67 73 2e 0a 0a 20 20 20 20 20 2d 08 2d 08 2d 08 2d 74   ┆llowing meanings.       - - - -t┆
0x400…420 08 74 08 74 08 74 20 20 20 50 6c 61 63 65 20 74 68 65 20 72 65 73 75 6c 74 20 6f 6e 20 74 68 65   ┆ t t t   Place the result on the┆
0x420…440 20 73 74 61 6e 64 61 72 64 20 6f 75 74 70 75 74 20 69 6e 73 74 65 61 64 20 6f 66 20 69 6e 0a 20   ┆ standard output instead of in  ┆
0x440…460 20 20 20 20 20 20 20 20 20 66 69 6c 65 20 6c 65 78 2e 79 79 2e 63 2e 0a 0a 20 20 20 20 20 2d 08   ┆         file lex.yy.c.       - ┆
0x460…480 2d 08 2d 08 2d 76 08 76 08 76 08 76 20 20 20 50 72 69 6e 74 20 61 20 6f 6e 65 2d 6c 69 6e 65 20   ┆- - -v v v v   Print a one-line ┆
0x480…4a0 73 75 6d 6d 61 72 79 20 6f 66 20 73 74 61 74 69 73 74 69 63 73 20 6f 66 20 74 68 65 20 67 65 6e   ┆summary of statistics of the gen┆
0x4a0…4c0 65 72 61 74 65 64 0a 20 20 20 20 20 20 20 20 20 20 61 6e 61 6c 79 7a 65 72 2e 0a 0a 20 20 20 20   ┆erated           analyzer.      ┆
0x4c0…4e0 20 2d 08 2d 08 2d 08 2d 6e 08 6e 08 6e 08 6e 20 20 20 4f 70 70 6f 73 69 74 65 20 6f 66 20 2d 08   ┆ - - - -n n n n   Opposite of - ┆
0x4e0…500 2d 08 2d 08 2d 76 08 76 08 76 08 76 3b 20 2d 08 2d 08 2d 08 2d 6e 08 6e 08 6e 08 6e 20 69 73 20   ┆- - -v v v v; - - - -n n n n is ┆
0x500…520 64 65 66 61 75 6c 74 2e 0a 0a 20 20 20 20 20 2d 08 2d 08 2d 08 2d 63 08 63 08 63 08 63 20 20 20   ┆default.       - - - -c c c c   ┆
0x520…540 69 6e 64 69 63 61 74 65 73 20 43 20 61 63 74 69 6f 6e 73 20 28 74 68 65 20 64 65 66 61 75 6c 74   ┆indicates C actions (the default┆
0x540…560 29 2e 0a 0a 20 20 20 20 20 2d 08 2d 08 2d 08 2d 66 08 66 08 66 08 66 20 20 20 69 6e 64 69 63 61   ┆).       - - - -f f f f   indica┆
0x560…580 74 65 73 20 52 41 54 46 4f 52 20 61 63 74 69 6f 6e 73 2e 0a 0a 20 20 20 20 20 2d 08 2d 08 2d 08   ┆tes RATFOR actions.       - - - ┆
0x580…5a0 2d 66 08 66 08 66 08 66 20 20 20 60 60 46 61 73 74 65 72 27 27 20 63 6f 6d 70 69 6c 61 74 69 6f   ┆-f f f f   ``Faster'' compilatio┆
0x5a0…5c0 6e 20 66 6f 72 20 73 6d 61 6c 6c 20 70 72 6f 67 72 61 6d 73 2e 20 20 44 6f 6e 27 74 0a 20 20 20   ┆n for small programs.  Don't    ┆
0x5c0…5e0 20 20 20 20 20 20 20 62 6f 74 68 65 72 20 74 6f 20 70 61 63 6b 20 74 68 65 20 72 65 73 75 6c 74   ┆       bother to pack the result┆
0x5e0…600 69 6e 67 20 74 61 62 6c 65 73 2e 0a 0a 45 08 45 08 45 08 45 58 08 58 08 58 08 58 41 08 41 08 41   ┆ing tables.  E E E EX X X XA A A┆
0x600…620 08 41 4d 08 4d 08 4d 08 4d 50 08 50 08 50 08 50 4c 08 4c 08 4c 08 4c 45 08 45 08 45 08 45 53 08   ┆ AM M M MP P P PL L L LE E E ES ┆
0x620…640 53 08 53 08 53 0a 20 20 20 20 20 54 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 65 78 61 6d 70 6c 65   ┆S S S      The following example┆
0x640…660 20 74 61 6b 65 73 20 5f 08 6c 5f 08 65 5f 08 78 20 63 6f 6d 6d 61 6e 64 73 20 66 72 6f 6d 20 74   ┆ takes _ l_ e_ x commands from t┆
0x660…680 68 65 20 66 69 6c 65 0a 20 20 20 20 20 6c 65 78 63 6f 6d 6d 61 6e 64 73 2e 6c 20 61 6e 64 20 70   ┆he file      lexcommands.l and p┆
0x680…6a0 75 74 73 20 74 68 65 20 6f 75 74 70 75 74 20 69 6e 20 6c 65 78 2e 79 79 2e 63 2e 0a 0a 20 20 20   ┆uts the output in lex.yy.c.     ┆
0x6a0…6c0 20 20 20 20 20 20 20 6c 65 78 20 6c 65 78 63 6f 6d 6d 61 6e 64 73 2e 6c 0a 0a 20 20 20 20 20 46   ┆       lex lexcommands.l       F┆
0x6c0…6e0 6f 6c 6c 6f 77 69 6e 67 20 69 73 20 61 6e 20 65 78 61 6d 70 6c 65 20 6f 66 20 61 20 5f 08 6c 5f   ┆ollowing is an example of a _ l_┆
0x6e0…700 08 65 5f 08 78 20 70 72 6f 67 72 61 6d 20 74 68 61 74 20 77 6f 75 6c 64 20 62 65 20 70 75 74 0a   ┆ e_ x program that would be put ┆
0x700…720 20 20 20 20 20 69 6e 74 6f 20 61 20 5f 08 6c 5f 08 65 5f 08 78 20 63 6f 6d 6d 61 6e 64 20 66 69   ┆     into a _ l_ e_ x command fi┆
0x720…740 6c 65 2e 20 20 54 68 69 73 20 70 72 6f 67 72 61 6d 20 63 6f 6e 76 65 72 74 73 20 75 70 70 65 72   ┆le.  This program converts upper┆
0x740…760 20 63 61 73 65 0a 20 20 20 20 20 74 6f 20 6c 6f 77 65 72 20 63 61 73 65 2c 20 72 65 6d 6f 76 65   ┆ case      to lower case, remove┆
0x760…780 73 20 62 6c 61 6e 6b 73 20 61 74 20 74 68 65 20 65 6e 64 2d 6f 66 2d 6c 69 6e 65 2c 20 61 6e 64   ┆s blanks at the end-of-line, and┆
0x780…7a0 0a 20 20 20 20 20 72 65 70 6c 61 63 65 73 20 6d 75 6c 74 69 70 6c 65 20 62 6c 61 6e 6b 73 20 62   ┆      replaces multiple blanks b┆
0x7a0…7c0 79 20 73 69 6e 67 6c 65 20 62 6c 61 6e 6b 73 2e 0a 0a 0a 20 20 20 20 20 20 20 20 20 20 25 25 0a   ┆y single blanks.             %% ┆
0x7c0…7e0 20 20 20 20 20 20 20 20 20 20 5b 41 2d 5a 5d 20 70 75 74 63 68 61 72 28 79 79 74 65 78 74 5b 30   ┆          [A-Z] putchar(yytext[0┆
0x7e0…800 5d 2b 27 61 27 2d 27 41 27 29 3b 0a 20 20 20 20 20 20 20 20 20 20 5b 20 5d 2b 24 0a 20 20 20 20   ┆]+'a'-'A');           [ ]+$     ┆
0x800…820 20 20 20 20 20 20 5b 20 5d 2b 20 20 70 75 74 63 68 61 72 28 27 20 27 29 3b 0a 0a 53 08 53 08 53   ┆      [ ]+  putchar(' ');  S S S┆
0x820…840 08 53 45 08 45 08 45 08 45 45 08 45 08 45 08 45 20 41 08 41 08 41 08 41 4c 08 4c 08 4c 08 4c 53   ┆ SE E E EE E E E A A A AL L L LS┆
0x840…860 08 53 08 53 08 53 4f 08 4f 08 4f 08 4f 0a 20 20 20 20 20 55 73 65 72 20 43 6f 6d 6d 61 6e 64 73   ┆ S S SO O O O      User Commands┆
0x860…880 20 28 31 29 3a 20 20 61 77 6b 2c 20 63 63 2c 20 73 65 64 2c 20 79 61 63 63 0a 0a 0a 0a 0a 0a 0a   ┆ (1):  awk, cc, sed, yacc       ┆
0x880…8a0 0a 4d 61 72 63 68 20 31 39 38 39 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆ March 1989                     ┆
0x8a0…8c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 54 58 20 55 73 65 72 27 73 20 52 65 66 65 72 65 6e   ┆               TX User's Referen┆
0x8c0…8e0 63 65 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a   ┆ce                              ┆
0x8e0…8fe 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a         ┆                              ┆