Tell me if there are generators of binary file parsers whose usecase is similar to yacc / bison:

  • we submit to the input a certain specification of the format (including with bit fields),
  • add the validation code of elements (checksum checks, ranges of values, additional dependencies between elements)
  • we attach the necessary "reaction code" to the rules, for example, the call of constructors

Run through the generator: biton MSWordDocument.spec

And we get (output) the load / validator code of the desired format (especially interesting streaming parsers of binary protocols), which also can mark or discard broken elements that have not been validated.

Well, or at least please tell me the correct naming of binary parsing algorithms , preferably capable of working with broken data (something like search with returns, and shift parse window).

Application: protocol analyzers, universal telemetry decoder

PS: maybe there is some third-party utility-decoder compiler for wireshark, working on this principle

    0