Simple regex-based ASM compiler