From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 2F272BC57 for ; Fri, 6 Aug 2010 16:57:35 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvMCANe/W0zRVaA0kGdsb2JhbACDFZA7jGYIFQEBAQEJCQwHEQMfiCCiHIhPPIIQhjEuiFQBAQMFgSGDIXMEiTc X-IronPort-AV: E=Sophos;i="4.55,329,1278280800"; d="scan'208";a="65116267" Received: from mail-pw0-f52.google.com ([209.85.160.52]) by mail1-smtp-roc.national.inria.fr with ESMTP; 06 Aug 2010 16:57:34 +0200 Received: by pwj8 with SMTP id 8so535013pwj.39 for ; Fri, 06 Aug 2010 07:57:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=MWVfiVenKVB4589Jr2vCONdwbhom6WxpdSkcA8/TM/c=; b=AAyS3MTkOuji0IJG85zZwK33PsdYzddX7i8Z2NyeHQJUOTWjhoB/H13tP7+lwT0xrR KsugnOZH0N9liAmh8PNYKelud9jM7oAdcOWYQc/6275NFkBQ1oM5xxM96uFaIvuXd534 oyRRMEC7KNnU1Ae8IgbabVMUH4b4MV9DSXMXQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=CbWNpgJFyhOms4AEIkU2sjyg92IyWpbJd7JIeFN81DOqROJmIjpDlGNOnmbY+G7HWC SyUm96XWUkUlJ8tQlJpyy8Pwap1NhrbNdf8ohP8ExPvQ1DSdT5ANEA/W1JwbuxIKTITr OervK60d7tBNlQhEtGzEV4Y8rDT75dmXfBm4E= MIME-Version: 1.0 Received: by 10.142.133.20 with SMTP id g20mr10426104wfd.0.1281106651671; Fri, 06 Aug 2010 07:57:31 -0700 (PDT) Received: by 10.220.72.76 with HTTP; Fri, 6 Aug 2010 07:57:31 -0700 (PDT) Date: Fri, 6 Aug 2010 16:57:31 +0200 Message-ID: Subject: [Camlp4] questions From: Raphael Proust To: caml-list@yquem.inria.fr Content-Type: text/plain; charset=UTF-8 X-Spam: no; 0.00; camlp:01 syntax:01 camlp:01 dumped:01 ocamlc:01 ocamlopt:01 transforming:01 defaults:01 lexers:01 parsers:01 ocamldoc:01 ast:02 output:02 character:04 ugly:04 Hi all, I've completed the syntax extension I asked the list about a few days ago. It probably still needs a few tweaks, but it works. While coding, a few questions/remarks came to mind: Is it possible to only load the filters from Camlp4? Using such a feature one could load dumped AST (just like ocamlc/ocamlopt does) (instead of getting a "Illegal character \132"), filter it and dump it again. Is there a (nice) way to input/output multiple files? I managed reading from a second file while transforming one but the code is (really) ugly. The above two "features" would allow more complex build process than the basic one file unix-filter. Are the defaults lexers/parsers/filters exported? if true then Where? else Why? Also: Links on the page http://brion.inria.fr/gallium/index.php/Relevant_Source_Files are dead. For those who ever need it camlunity as the ocamldoc online: http://camlunity.ru/camlp4/ -- _______ Raphael