Thursday, April 22, 2010

back to the object-code thinger

once you read code into a compiler as an abstract syntax tree with a symbol table, it's in a really neat state. It's independent of language semantics or syntax. (or, it can be)

ideas for what to do with it in that state:

code style converter (for example, braces and indentation)

code generator (convert your C to python, your python to java, etc.)

diagram generator (spit out meaningful diagrams of the structure of the code)

more and more I'm thinking this is the utility I want. I wonder if this is pretty much what something like Doxygen is capable of.