code: function func(ast) {
    var params = list(ast["params"])
    var id = ast["id"] ? to_s(ast["id"]) : ""
    return "function " + id + "(" + params + ") " + to_s(ast["body"])
  }
docs: serializes function declaration or expression