Package: flex Version: 2.5.33-11 Hi,
When I attempt the C file generation from the attached sample flex
file, I get the following error (repeated several times).
lexer.l:12: unrecognized rule
It seems that flex does not handle the {-} regexp operator, unlike its
manual describes at <http://flex.sourceforge.net/manual/Patterns.html>.
Cheers,
--
.''`. Aurélien GÉRÔME
: :' :
`. `'` Free Software Developer
`- Unix Sys & Net Admin
%option reentrant
%option noyywrap
%option nounput
%option yylineno
%option warn
%{
%}
%%
[a-z]{-}[aeiou] {
printf("consonant\n");
}
%%
int main(void) {
yyscan_t scanner;
yylex_init(&scanner);
yylex(scanner);
yylex_destroy(scanner);
return 0;
}
signature.asc
Description: Digital signature

