It's a Christmas (Eve) Miracle! I am posting the source code for the script that I used to create the Blank files in the past. I can tell you from a quick glance that it will not work with the latest version of Mame. At the very least, the path to the src files would need to be scanned recursively, and extensions would need to be specified, as include files (.h) were scanned in separately from the .c files. There's no way to know what else may have changed without giving it a go, and modifying the code accordingly. The script does have comments for each section, and also data type examples of which the code was attempting to handle. If someone wants to take the reins, I will try to be helpful, but I am not willing to dedicate my life to it.
Merry Christmas to all my old friends at GameEx!
Edit: If someone were going to tackle this, they should consider using the data in the mame####lx.zip file.
Scan Source 7.1.ahk