We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Minimal example:
position token Tok '_' ; Entrypoint . Entrypoint ::= Tok ;
Save this under bug.cf in some temporary directory, run bnfc bug.cf, run runhaskell TestBug.hs. This is the error:
bug.cf
bnfc bug.cf
runhaskell TestBug.hs
AbsBug.hs:18:36: error: Not in scope: type constructor or class ‘String’ | 18 | newtype Tok = Tok ((C.Int, C.Int), String) | ^^^^^^
I've only confirmed this bug with 2.9.1 release (from stackage) and not with master, but after quick look into code it seems like this wasn't fixed.
The cause of this bug is probably that here
bnfc/source/src/BNFC/Backend/Haskell/CFtoAbstract.hs
Line 154 in 94cc080
hasIdentLike
bnfc/source/src/BNFC/CF.hs
Lines 758 to 759 in 94cc080
The text was updated successfully, but these errors were encountered:
Thanks for the report, @MrQubo, I can confirm that this is a regression in 2.9.1.
Sorry, something went wrong.
3bb050a
[ #368 ] CHANGELOG
98b9828
andreasabel
No branches or pull requests
Minimal example:
Save this under
bug.cf
in some temporary directory, runbnfc bug.cf
, runrunhaskell TestBug.hs
. This is the error:I've only confirmed this bug with 2.9.1 release (from stackage) and not with master, but after quick look into code it seems like this wasn't fixed.
The cause of this bug is probably that here
bnfc/source/src/BNFC/Backend/Haskell/CFtoAbstract.hs
Line 154 in 94cc080
hasIdentLike
is used, which only includes non-position tokens as described in this commentbnfc/source/src/BNFC/CF.hs
Lines 758 to 759 in 94cc080
The text was updated successfully, but these errors were encountered: