I have this exact issue. I am trying to build an agnostic parser for all code. I think there is a tree-parser
tree-parser