CIFASIS / CIFASIS/QuickFuzz

BNFC backend ignoring token definitions

Open
#73 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
196
Forks
39
PR merge metrics
No merged PRs in 30d

Description

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`.

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?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.