-
Notifications
You must be signed in to change notification settings - Fork 831
"alt" is limited on how many alternatives exist #1189
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
Comments
You can read a bit about it here #1144 |
Thanks for the additional information! I did not find that issue while searching, because I limited myself to open issues. I still think this necessity of nesting should appear in the documentation, so maybe this issue can stay open for the documentation fix, or should I create another issue? |
It's always a good idea to check closed issues for solutions 😊 For clarity's sake I would say close this one and open another. |
Closed in favor for #1192 |
Hi! I'm trying to write (well, to auto-generate) a disassembler using nom.
So far I have a python script that generates the nom-based parsers for all different instructions.
The problem is that
alt
can't take many hundreds of alternatives.Prerequisites
Here are a few things you should provide to help me understand the issue:
Test case
The following minimal example does not compile, and I need something like that to compile.
In my case, of course, the parsers inside the
alt
are self-written/generated functions that are not easilycombined as in this example.
I will try to group my
alt
expressions, to have nestedalt
s, but it would be nice to allow this, or at least document how to work around that limit.The text was updated successfully, but these errors were encountered: