shnewto / bnf

Parse BNF grammar definitions
MIT License
256 stars 22 forks source link

What to do with a grammar? #7

Closed CrockAgile closed 6 years ago

CrockAgile commented 6 years ago

The example use case is parsing a bnf string to a grammar. But, what are the use cases after that?

// let input = some grammar string
let grammar = bnf::parse(input);
// now what can I do with it?
shnewto commented 6 years ago

I agree that there is a lot of room for growth. I'd like to begin implementing some of the things you've mentioned in the near future (or review PRs that implement them! 😊). Thanks for raising the issue.

CrockAgile commented 6 years ago

I was hoping that you might be able to act as the current typical user. Which of those ideas would be useful to a user? I am having trouble envisioning the end use case. But for each idea we have that resonates as useful improvement, then we should open a corresponding issue. I would rather work on features that you have deemed useful and thought out with descriptions than improvise my ideas.

shnewto commented 6 years ago

One high priority goal I have is a generate function that does something along the lines of what the erratic JavaScript library enables.

CrockAgile commented 6 years ago

I think this question has been answered by the work in 0.2.0