ImHex-Patterns icon indicating copy to clipboard operation
ImHex-Patterns copied to clipboard

Hexpat2c

Open boredcoder411 opened this issue 2 months ago • 1 comments

Is there already a hexpat to c/cpp compiler? Would be nice so that any pattern/parser can be integrated into existing projects natively

boredcoder411 avatar Oct 13 '25 22:10 boredcoder411

I don't see how it would be possible to write such a thing. Pattern language is dynamic by nature and allows constructs like

struct A {
   u8 a;
   if (a>127)
       u8 b;
  else
     u16 b;
};

that just cannot be turned into c++ easily. More complex constructs make what you suggest impossible imo

paxcut avatar Oct 14 '25 02:10 paxcut