I am trying to extract the expanded hierarchy with the lgbtypes but I haven’t had much luck. I tried reading through the source files but they are a bit obscure. The output format could be a tdl, or hash table or whatever. My guess is this should be possible, given that the functions to parse and process the hierarchy are there…
I think this should be fairly easily doable with PyDelphin’s tdl module, since it does not compute glb types. You would use tdl.iterparse() to enumerate the objects in some top-level TDL file, then look for TypeDefinition events and extract the object’s identifier and supertypes in order to build the hierarchy, and look for FileInclude events to parse an included TDL file.
Apologies for the late reply. The function that best matches your description is lkb::types-to-xml. It outputs only type names, including GLB types. E.g. (lkb::types-to-xml :file "myfile.txt")