Skip to content

Added .loop' API #18

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Added .loop' API #18

wants to merge 4 commits into from

Conversation

autarc
Copy link

@autarc autarc commented Jul 22, 2015

Although the request to merge the implementation of #17 Enable Strings as choice keys and the parent reference is still open, here is another feature thats generally useful. I've added an API to loop over the buffer and match the declared choices. In contrast to the current implementation of choice/array, it looks ahead and allows to define optional identifiers. The parsing continues until there is no further matching.

sandiz pushed a commit to psarcjs-forks/binary-parser that referenced this pull request Dec 24, 2019
sandiz pushed a commit to psarcjs-forks/binary-parser that referenced this pull request Dec 24, 2019
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

Successfully merging this pull request may close these issues.

1 participant