def find_sexps(type, tree = self.parse(self.body))
      result = tree[0] == type ? [tree] : []
      tree.each do |node|
        result.concat find_sexps(type, node) if node.is_a?(Array)
      end
      result
    end
def find_sexps(type, tree = self.parse(self.body))
      result = tree[0] == type ? [tree] : []
      tree.each do |node|
        result.concat find_sexps(type, node) if node.is_a?(Array)
      end
      result
    end
Finds all sexps of the given type in the given Sexp tree.

 @param [Symbol] type the type of sexp to search for
 @param [Sexp] tree (self.parse(self.body)) The tree to search in. Leave
   blank to search the entire body.
 @return [Array<Sexp>] all sexps in the input tree (or whole body) that
   are of the given type.