add feature to import [e]bnf grammars #6

Open
d0c-s4vage opened this Issue Dec 15, 2016 · 0 comments

Comments

Projects
None yet
1 participant
@d0c-s4vage
Owner

d0c-s4vage commented Dec 15, 2016

gramfuzz should have a method analogous to the load_grammar method that will parse a grammar file and create analogous gramfuzz structures in memory. Maybe something like:

fuzzer.import_grammar("path/to/test_grammar.bnf", type="bnf")

Both ebnf and bnf grammars should be allowed.

aside it may be cool (not sure how useful really though) to export grammar rules from memory into a file as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment