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

[Feature] Add a way to keep values in struct generated before continue keywords #2014

Open
1 task
RomanJos opened this issue Dec 18, 2024 · 0 comments
Open
1 task

Comments

@RomanJos
Copy link

RomanJos commented Dec 18, 2024

What feature would you like to see?

Hello, opening from #1031 (comment)
When building a struct on iteration, break keep whats generated but stop iterating anymore, while continue discard whats generated but keep continuing; would it be possible to have a pass keyword or something else (its not a reference to python, I think pass do something else there?) avoiding using match with (value): $=$;

My data have opcodes and sometimes they don't have values associated, I could use if statements but match is cleaner, perhaps there are other ways that I'm unaware of ?
Also I might add match could be unsuited for what I'm trying to achieve, the program do a weird escape if it stumble tree times on a set of value like so: (0x24 ... 0x26):if (matchOut == 3) break; else matchOut +=1; but this doesn't discard data as continue does lol

Thank you very much

How will this feature be useful to you and others?

e

Request Type

  • I can provide a PoC for this feature or am willing to work on it myself and submit a PR

Additional context?

Are there any plans to add [[color]] to enums value ?

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

No branches or pull requests

1 participant