Does anyone have tools to be able to inspect a compiler's metadata (types, refinements, aliasing, uses/defs, etc.) about a program?
I've spent time today searching around for some syntax highlighter that can be used/extended to add metadata about each variable or function, such that the information displays when one hovers over the identifier. Similar to what IDEs offer, but with everything precomputed and done in-browser. I'm moderately baffled that I can't find anything.
I currently have my toy typechecker add inferred types and refinements back to the program source as comments, which is then dumped out, but I would imagine that someone probably would have considered better tooling for visualizing type checking and analysis passes in compilers before?
#compiler #compilers #compilerdev #CompilerConstruction