the "least bad" approach i've found is - find C headers - parse C headers with terrible, terrible python regex soup that outputs chiptool yaml - run that through chiptool