From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=2.0 required=5.0 tests=AWL,DNS_FROM_RFC_ABUSE, DNS_FROM_RFC_POST,NO_REAL_NAME autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id 43DBDBC6C for ; Sat, 19 Jan 2008 16:52:15 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAOerkUc+KuYMfGdsb2JhbACJFIYNdgEBCQIIBwgTB50s X-IronPort-AV: E=Sophos;i="4.25,221,1199660400"; d="scan'208";a="6942678" Received: from unknown (HELO resmaa02.ono.com) ([62.42.230.12]) by mail1-smtp-roc.national.inria.fr with ESMTP; 19 Jan 2008 16:52:14 +0100 Received: from [192.168.1.33] (81.38.190.84) by resmaa02.ono.com (7.3.118.8) (authenticated as tmp123@menta.net) id 4773F3BE00A11E54 for caml-list@yquem.inria.fr; Sat, 19 Jan 2008 16:52:06 +0100 Message-ID: <47921CA1.5010705@menta.net> Date: Sat, 19 Jan 2008 16:52:01 +0100 From: tmp123@menta.net User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: caml-list@yquem.inria.fr Subject: Another print anything module Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; camlp:01 camlp:01 syntax:01 syntax:01 geocities:97 data:02 data:02 implemented:02 revised:02 authors:03 strong:96 module:03 module:03 std:03 tmp:05 Hello, Based in the implementation of ExtLib's Std.dump and the code of camlp4r, another module to "print/dump any value" has been implemented. Thanks to the original authors. The reason of the new version is to add two requirements need in my current project: 1) A strong split of: the analisis of value structure; the map of this structure over the value; and the print (or usage) of the resulting mapped data. 2) Allow the user to provide no information, some information or all information about field names and any other data that can not be obtained automatically from the value. Code uses camlp4r revised syntax, but as usual module can be used with any syntax. You can find the source, reference documentation and example at: http://www.geocities.com/tmp_456/dump/index.html Any comments, from "useless", "already done" to "improve ..." are welcome. Kind regards.