source: trunk/third/moira/util/et/et_lex.lex.l @ 23740

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
3int num_lines = 0;
4%}
5
6PC      [^\"]
7AN      [A-Z_a-z0-9]
8%%
9\n              ++num_lines;
10
11error_table     return ERROR_TABLE;
12et              return ERROR_TABLE;
13error_code      return ERROR_CODE_ENTRY;
14ec              return ERROR_CODE_ENTRY;
15end             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%%
31static const char l_rcsid[] = "$Id: et_lex.lex.l,v 1.2 1998-02-05 22:13:09 danw Exp $";
32
33int yywrap()
34{
35        return 1;
36}
Note: See TracBrowser for help on using the repository browser.