| Revision: | 1.1 |
| Committed: | Sun Oct 31 22:54:49 2004 UTC (21 years, 10 months ago) by root |
| Branch: | MAIN |
| Log Message: | *** empty log message *** |
| # | User | Rev | Content |
|---|---|---|---|
| 1 | root | 1.1 | %{ |
| 2 | #include <stdio.h> | ||
| 3 | |||
| 4 | #include "y.tab.h" | ||
| 5 | |||
| 6 | %} | ||
| 7 | |||
| 8 | %% | ||
| 9 | |||
| 10 | mac-pool return MAC_POOL; | ||
| 11 | |||
| 12 | \[.*\] ; | ||
| 13 | \"[^\"]*\" { yylval.string = strndup (yytext + 1, yyleng - 2); return STRING; } | ||
| 14 | |||
| 15 | \#.* ; | ||
| 16 | |||
| 17 | [\040\t\r,] ; | ||
| 18 | \n yylineno++; | ||
| 19 | |||
| 20 | [\;\{\}] return yytext[0]; | ||
| 21 | |||
| 22 | . printf ("unexpected character '%c' in config file line %d, skipping", yytext[0], yylineno); | ||
| 23 | |||
| 24 | %% | ||
| 25 | |||
| 26 | int yywrap () | ||
| 27 | { | ||
| 28 | return 1; | ||
| 29 | } | ||
| 30 | |||
| 31 |