pci: don't do sanity check for missing pci bus, the check can misfire.
[minix.git] / commands / flex-2.5.4 / MISC / fastwc / wc3.l
blob7c5f2e271773bea421eb662afb322bf2eabb07d3
1 /* Somewhat faster still: potentially match a lot of text with each rule */
3 ws    [ \t]
4 nonws [^ \t\n]
5 word  {ws}*{nonws}+
6 words {word}{ws}+
8 %%
9         int cc = 0, wc = 0, lc = 0;
11 {word}{ws}*             cc += yyleng; ++wc;
12 {word}{ws}*\n           cc += yyleng; ++wc; ++lc;
13 {words}{word}{ws}*      cc += yyleng; wc += 2;
14 {words}{2}{word}{ws}*   cc += yyleng; wc += 3;
15 {words}{3}{word}{ws}*   cc += yyleng; wc += 4;
17 {ws}+                   cc += yyleng;
19 \n+                     cc += yyleng; lc += yyleng;
21 <<EOF>>         {
22                 printf( "%8d %8d %8d\n", lc, wc, cc );
23                 yyterminate();
24                 }