The quality of the parse tree can reflect both the grammaticality of the surface string and the quality of the trained grammar model.
there is no direct way to automatically evaluate parse trees since output word choice and order can be different from the gold-standard.