The script (and the panthor_regs.rs file it generates) is at https://gitlab.collabora.com/dwlsalmeida/for-upstream/-/commit/783be55acf8d3352901798efb0118cce43e7f60b As you can see, it’s all regexes. It works, but I agree that it’s simpler to generate something more idiomatic by hand. — Daniel