From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id 52BE9820A2 for ; Tue, 3 Sep 2013 10:34:24 +0200 (CEST) Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of alain@frisch.fr) identity=pra; client-ip=193.252.23.215; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="alain@frisch.fr"; x-sender="alain@frisch.fr"; x-conformance=sidf_compatible Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of alain@frisch.fr) identity=mailfrom; client-ip=193.252.23.215; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="alain@frisch.fr"; x-sender="alain@frisch.fr"; x-conformance=sidf_compatible Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@msa.smtpout.orange.fr) identity=helo; client-ip=193.252.23.215; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="alain@frisch.fr"; x-sender="postmaster@msa.smtpout.orange.fr"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArgAABaeJVLB/BfXkGdsb2JhbABahzS6W4J1gUIOAQEBAQkUCRclgiQBAQUjFUABEAsYAgIFFgsCAgkDAgECAUUGAQwBBwEBiAKnLZIPgSmOTQeCaYE0A5d1hiyOXA X-IPAS-Result: ArgAABaeJVLB/BfXkGdsb2JhbABahzS6W4J1gUIOAQEBAQkUCRclgiQBAQUjFUABEAsYAgIFFgsCAgkDAgECAUUGAQwBBwEBiAKnLZIPgSmOTQeCaYE0A5d1hiyOXA X-IronPort-AV: E=Sophos;i="4.89,1012,1367964000"; d="scan'208";a="31278281" Received: from msa06.smtpout.orange.fr (HELO msa.smtpout.orange.fr) ([193.252.23.215]) by mail2-smtp-roc.national.inria.fr with ESMTP; 03 Sep 2013 10:34:15 +0200 Received: from [192.168.1.118] ([92.151.8.47]) by mwinf5d47 with ME id LYaE1m00m10tCGU03YaE9o; Tue, 03 Sep 2013 10:34:15 +0200 Message-ID: <52259F06.6070404@frisch.fr> Date: Tue, 03 Sep 2013 10:34:14 +0200 From: Alain Frisch User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0 MIME-Version: 1.0 To: Jonathan Protzenko , Ashish Agarwal CC: Caml List References: <5224B137.8070706@gmail.com> <5224F20C.1010905@gmail.com> In-Reply-To: <5224F20C.1010905@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Caml-list] Literate (sort-of) programming in OCaml On 09/02/2013 10:16 PM, Jonathan Protzenko wrote: > Alain's sed > trick seems to be exactly what I need, I'm just a bit afraid if I ever > need to change something, it'll be break. But in essence, yes, that's > just all I need. Be careful with OCaml lexical convention though. If you use e.g. " or \ in your text, you'll need also to escape them with sed. Alternatively, you could use the new syntax for string literals ({foo|....|foo}) now available in trunk. -- Alain