def Simplify(parser_return):
 if parser_return.tree:
  node = SimplifyNode(parser_return.tree)
  ValidateNode(node)
  return node
 return parser_return

def Simplify ( parser_return ) : if parser_return . tree : node = SimplifyNode ( parser_return . tree ) ValidateNode ( node ) return node return parser_return
simplifies the output of the parser .