-
Notifications
You must be signed in to change notification settings - Fork 24
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
merged BNF and ABNF parsing #171
base: main
Are you sure you want to change the base?
Conversation
could i add the commit that changes |
@shnewto is there any progress on reviewing this? |
Hey @Carlyle-Foster, first off thanks for all your work! I'd really like you to continue your fantastic contributions, I think we just need to dial the process a bit before we get much further in. re:
That's not really a flow I'm happy with, I'd like PR diffs and history to be understandable on their own. I'd also appreciate more context for your changes and the decisions you made in your PR description! As I mentioned in another PR, we're not in any rush and these changes are sophisticated enough that messy diffs and messy history make reviewing a lot more challenging. Some recommendations:
I really do appreciate your work and engagement with this project! Thank you! |
@shnewto the main reason i think we should merge BNF and ABNF parsing is simply that they're both compatible, and the complexity incurred by our current approach of trying to infer the i've reduced this PR down to the barest essentials now, i think it ready? the only thing that could rightfully go in |
it think their's a bit of a misunderstanding here, what i was suggesting would result in an identical git history to simply merging 2 PR's sequentially, or at least that was the intention sometimes a conceptually atomic change that should be 1 PR can be most clearly expressed as multiple diffs/commits, such as in this case where the refactor implies a change in the directory structure but including the file shuffling in the same commit would obscure the diff |
@Carlyle-Foster what's the motivation behind merging the two parsers? because I am open to the idea, but my initial reaction is that allowing for mixing syntax is a bit messy, and potentially confusing to new users.
Also, moving different syntaxes to dynamic time parsing, as opposed to static generics has a performance cost. But a small one! So it could be justified for a good reason |
i elaborated a few posts above u
|
Ah sorry missed that in the thread. I see the point about auto inferring being a point of failure. maybe the other end of the spectrum could be a solution? implementing parse for both formats |
how is that different from what we were doing before, or do i misunderstand? |
what's the current status here? |
this change allowed me to compress the tests for BNF and ABNF syntax parsing.
this time the diff should be much clearer.