add metr '-d' option to dump parse tree