oooooh shiiit I think I'm about to write a streaming C-preprocessor to deal with the #includes in GROMACS top and itp files.[1]
(Experimenting with deriving total system charge from a system's top file to make charge-neutral solvation trivial with bentopy-solvate. nbd.)