Convert AST to D associative array