Revision 23740,
592 bytes
checked in by broder, 16 years ago
(diff) |
In moira:
* New CVS snapshot (Trac: #195)
* Drop patches that have been incorporated upstream.
* Update to build without krb4 on systems that no longer have it.
This doesn't build yet on squeeze, which lacks a krb4 library, but I'm
committing now before I start hacking away at a patch to fix that.
|
Line | |
---|
1 | %{ |
---|
2 | #undef yywrap |
---|
3 | int num_lines = 0; |
---|
4 | %} |
---|
5 | |
---|
6 | PC [^\"] |
---|
7 | AN [A-Z_a-z0-9] |
---|
8 | %% |
---|
9 | \n ++num_lines; |
---|
10 | |
---|
11 | error_table return ERROR_TABLE; |
---|
12 | et return ERROR_TABLE; |
---|
13 | error_code return ERROR_CODE_ENTRY; |
---|
14 | ec return ERROR_CODE_ENTRY; |
---|
15 | end return END; |
---|
16 | |
---|
17 | [\t\n ] ; |
---|
18 | |
---|
19 | \"{PC}*\" { register char *p; yylval.dynstr = ds(yytext+1); |
---|
20 | p=strrchr(yylval.dynstr, '"'); |
---|
21 | if (p) *p='\0'; |
---|
22 | return QUOTED_STRING; |
---|
23 | } |
---|
24 | |
---|
25 | {AN}* { yylval.dynstr = ds(yytext); return STRING; } |
---|
26 | |
---|
27 | #.*\n ; |
---|
28 | |
---|
29 | . { return (*yytext); } |
---|
30 | %% |
---|
31 | static const char l_rcsid[] = "$Id: et_lex.lex.l,v 1.2 1998-02-05 22:13:09 danw Exp $"; |
---|
32 | |
---|
33 | int yywrap() |
---|
34 | { |
---|
35 | return 1; |
---|
36 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.