Skip to content
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

ABNF > Blab - Core rules not exported #58

Open
stestagg opened this issue Feb 7, 2022 · 1 comment
Open

ABNF > Blab - Core rules not exported #58

stestagg opened this issue Feb 7, 2022 · 1 comment

Comments

@stestagg
Copy link

stestagg commented Feb 7, 2022

When generating blab output from ABNF that uses built-in core rules, the blab output
doesn't have those core rules defined, so blab can't parse the fule:

$> echo "a = DIGIT" | kgt -l abnf -e blab | blab
Could not find /usr/share/blab/DIGIT.blab needed for 'DIGIT'
@katef
Copy link
Owner

katef commented Feb 20, 2022

This is true, and it's actually intentional - for other dialect outputs, I didn't want to provide definitions for these rules where we might already have them from another context. Especially for fuzzing with blab, I often want to define these by hand to something specific, instead of using their full definitions.

What I think we should have though, is something in examples/ (it needn't be written in ABNF!) specifying them. Then you could render them both to blab and cat them together.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants