perl modules for CUBINs patching

After playing a bit with my ced I came to the conclusion that implemented DSL for editing is not enough - like it would be good to have subroutines to patch repeated/similar instructions, check that patched instruction is what I want, patch attributes/ relocs etc In other words, I need full-fledged PL. Although I've read books series "modern compiler implementation" from Andrew Appel and "…