binary-parser
binary-parser copied to clipboard
Added .loop' API
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.