1995-01-14 22:29:34 +00:00
|
|
|
PC [^\"]
|
1994-09-30 14:50:09 +00:00
|
|
|
AN [A-Z_a-z0-9]
|
|
|
|
%%
|
|
|
|
|
|
|
|
error_table return ERROR_TABLE;
|
|
|
|
et return ERROR_TABLE;
|
|
|
|
error_code return ERROR_CODE_ENTRY;
|
|
|
|
ec return ERROR_CODE_ENTRY;
|
|
|
|
end return END;
|
|
|
|
|
1995-01-14 22:29:34 +00:00
|
|
|
[\t\n ] ;
|
1994-09-30 14:50:09 +00:00
|
|
|
|
|
|
|
\"{PC}*\" { register char *p; yylval.dynstr = ds(yytext+1);
|
1996-07-12 19:08:36 +00:00
|
|
|
if ( (p=rindex(yylval.dynstr, '"')) ) *p='\0';
|
1994-09-30 14:50:09 +00:00
|
|
|
return QUOTED_STRING;
|
|
|
|
}
|
|
|
|
|
|
|
|
{AN}* { yylval.dynstr = ds(yytext); return STRING; }
|
|
|
|
|
1995-01-14 22:29:34 +00:00
|
|
|
#.*\n ;
|
1994-09-30 14:50:09 +00:00
|
|
|
|
|
|
|
. { return (*yytext); }
|
|
|
|
%%
|
1995-01-14 22:29:34 +00:00
|
|
|
#ifndef lint
|
1996-07-12 19:08:36 +00:00
|
|
|
static char rcsid_et_lex_lex_l[] = "$Header: /home/ncvs/src/usr.bin/compile_et/et_lex.lex.l,v 1.2 1995/01/14 22:29:33 wollman Exp $";
|
1995-01-14 22:29:34 +00:00
|
|
|
#endif
|