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

Revision 24319, 592 bytes checked in by broder, 14 years ago (diff)
New Moira snapshot from SVN.
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 3956 2010-01-05 20:56:56Z zacheiss $";
32
33int yywrap()
34{
35        return 1;
36}
Note: See TracBrowser for help on using the repository browser.