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