* arlex.l: Make work with lex, for what it's worth.
This commit is contained in:
parent
11ad114b76
commit
31f62b8976
1 changed files with 6 additions and 1 deletions
|
@ -66,7 +66,7 @@ int linenumber;
|
|||
"(" { return '('; }
|
||||
")" { return ')'; }
|
||||
"," { return ','; }
|
||||
[A-Za-z0-9/$:.\-]+ {
|
||||
[A-Za-z0-9/$:.\-\_]+ {
|
||||
yylval.name = strdup(yytext);
|
||||
return FILENAME;
|
||||
}
|
||||
|
@ -75,3 +75,8 @@ int linenumber;
|
|||
" " { }
|
||||
"\n" { linenumber ++; return NEWLINE; }
|
||||
|
||||
%%
|
||||
#ifndef yywrap
|
||||
/* Needed for lex, though not flex. */
|
||||
int yywrap() { return 1; }
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue