-
Notifications
You must be signed in to change notification settings - Fork 169
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
Values for enum YYCONDTYPE are not generated when default rules with conditions are used #145
Comments
Confirmed, this is a bug and it is reproducible with HEAD. I've simplified the test case a bit:
Expected result of
Actual result:
|
As a workaround one can use |
when default rules with conditions are used". Default rule is handled in a special (delayed) way; re2c uses different code for default rule than for normal rules. This special code simply forgot to add condition name to the list of conditions. Thanks to sirzooro for bug report.
Fixed in |
Did you try the fix? |
Yes, it works for me. Thanks :) |
when default rules with conditions are used". Default rule is handled in a special (delayed) way; re2c uses different code for default rule than for normal rules. This special code simply forgot to add condition name to the list of conditions. Thanks to sirzooro for bug report.
Following code generates empty
enum YYCONDTYPE
(no values), so compilation fails. When I changed it to use single default rule for all conditions, enum values were generated as expected.I use re2c 0.16 compiled using gcc 5.3.0 on Cygwin x86_64.
The text was updated successfully, but these errors were encountered: