Conceiving JavaML
n Key observations
n XML represents arbitrary graphs
reasonably well (and represents trees
exceptionally well)
n Program source code gets represented
internally as a tree—the Abstract Syntax
Tree (AST)
n Obvious conclusion:
We can use XML to represent programs