Open dkasak opened 6 years ago
The BNFC backend is (predictably) ignoring any BNFC token definition since they only get encoded into the Alex source file and QuickFuzz just ends up using the Arbitrary instance of String.
Arbitrary
String
For instance, given the following BNFC grammar:
Program. Exp ::= CIdent ; token CIdent (lower (lower | digit | '_')*) ;
Produces the following non-printable gibberish:
�(2
Is it possible to be smarter about this?
For some reason, I did not receive an email with this issue in my inbox. Sorry for the delay to answer!
I think we should ask @ebadi, the user that contributed adding the BNFC backend.
The BNFC backend is (predictably) ignoring any BNFC token definition since they only get encoded into the Alex source file and QuickFuzz just ends up using the
Arbitrary
instance ofString
.For instance, given the following BNFC grammar:
Produces the following non-printable gibberish:
Is it possible to be smarter about this?