1995-01-14 23:29:34 +01:00
|
|
|
PC [^\"]
|
1994-09-30 15:50:09 +01: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 23:29:34 +01:00
|
|
|
[\t\n ] ;
|
1994-09-30 15:50:09 +01:00
|
|
|
|
|
|
|
\"{PC}*\" { register char *p; yylval.dynstr = ds(yytext+1);
|
|
|
|
if (p=rindex(yylval.dynstr, '"')) *p='\0';
|
|
|
|
return QUOTED_STRING;
|
|
|
|
}
|
|
|
|
|
|
|
|
{AN}* { yylval.dynstr = ds(yytext); return STRING; }
|
|
|
|
|
1995-01-14 23:29:34 +01:00
|
|
|
#.*\n ;
|
1994-09-30 15:50:09 +01:00
|
|
|
|
|
|
|
. { return (*yytext); }
|
|
|
|
%%
|
1995-01-14 23:29:34 +01:00
|
|
|
#ifndef lint
|
|
|
|
static char rcsid_et_lex_lex_l[] = "$Header: et_lex.lex.l,v 1.3 87/10/31 06:28:05 raeburn Exp $";
|
|
|
|
#endif
|