Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax issue for multiples of a character #27

Open
The-Mad-Duck opened this issue Sep 2, 2022 · 0 comments
Open

Syntax issue for multiples of a character #27

The-Mad-Duck opened this issue Sep 2, 2022 · 0 comments

Comments

@The-Mad-Duck
Copy link

I was writing a line as below:
\'{SCHAR}{2,}\' { fprintf(stderr, "character constant %s too long on line %d\n", yytext, no_of_lines); }
And noticed an error was highlighted over {2,}. However, this is a valid line meaning "2 or more of". In this case, the whole line means:
(quote) 2 or more of SCHAR (quote)

This compiles fine when using a flex compiler on Unix and is listed as correct in the flex manual.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant