Generation of Analysis Trees