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=0.4 required=5.0 tests=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id B2EC3BBC1 for ; Wed, 12 Mar 2008 02:00:39 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AuoBAGbI1kfAXQInh2dsb2JhbACQcAEBAQgKKY9Nhz0 X-IronPort-AV: E=Sophos;i="4.25,483,1199660400"; d="scan'208";a="8280885" Received: from concorde.inria.fr ([192.93.2.39]) by mail2-smtp-roc.national.inria.fr with ESMTP; 12 Mar 2008 02:00:39 +0100 Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id m2C10cPn019897 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Wed, 12 Mar 2008 02:00:39 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApgBALLH1kfRVcivlGdsb2JhbACQcAEBAQEHBAQJCo9ehz0 X-IronPort-AV: E=Sophos;i="4.25,483,1199660400"; d="scan'208";a="10155732" Received: from wf-out-1314.google.com ([209.85.200.175]) by mail3-smtp-sop.national.inria.fr with ESMTP; 12 Mar 2008 02:00:38 +0100 Received: by wf-out-1314.google.com with SMTP id 26so3268454wfd.0 for ; Tue, 11 Mar 2008 18:00:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=lxwSOYb/NB8tXj6aueFy14faq7Ne+8fMvF/bpz/AjVs=; b=t4pckvb5aEH4VQ4lC3JPtcHQC3Sh32lC98/t/VjP/OXkoBc86KWsRLpTRQTSJWvb9zpcGlI8degoqyn8O0LdLKIyyuWfm0qN+99rbFJiMqzIrQXLWDhn6WHDDXc1ynwPPP4sRhYi/1lJIMCmaTUhMiWrOgFH7knIrIHlbU3MsRs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=eHTdGWbu4Ctk0fyGH5WJj5C6dVJ2IwAU2HC+nNQSZKsTzt/YGtIyaD9rxhB7zmdJAcNDfBptV0i3YDRSsJ35LFpxaENBxRhbFpXglwXBjfVXM3ka/c2zxxrWCRNLcACAqmStw4GwxHkNTUmH6nmqEyJcrMrdtTDzkfYNEzM+N1g= Received: by 10.142.100.1 with SMTP id x1mr3190040wfb.131.1205283636908; Tue, 11 Mar 2008 18:00:36 -0700 (PDT) Received: by 10.143.187.9 with HTTP; Tue, 11 Mar 2008 18:00:36 -0700 (PDT) Message-ID: Date: Tue, 11 Mar 2008 18:00:36 -0700 From: "Nathaniel Gray" To: "Till Varoquaux" Subject: Re: [Caml-list] Ocamllex newline counting... Cc: OCaml In-Reply-To: <9d3ec8300803070157y6bb173eew865e2f232cb4c789@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <9d3ec8300803070157y6bb173eew865e2f232cb4c789@mail.gmail.com> X-Miltered: at concorde with ID 47D72B36.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; ocamllex:01 newlines:01 cheers:01 wrote:01 preprocessor:01 caml-list:01 newline:02 caml:02 output:02 guess:04 caltech:05 caltech:05 generated:05 fri:05 inria:06 On Fri, Mar 7, 2008 at 2:57 AM, Till Varoquaux wrote: > > Is there any fundamental reason I am missing why newlines are not > handled natively in the generated automaton? My guess is that this is for the times you're working on the output of a preprocessor. It's common for preprocessors to add extra lines that shouldn't be counted for error reporting purposes. I agree that there should be better support for the common case, though. That's why I reported this feature request for a helper function to factor out some of the boilerplate code, which was granted: http://caml.inria.fr/mantis/view.php?id=3930 Cheers, -n8 -- >>>-- Nathaniel Gray -- Caltech Computer Science ------> >>>-- Mojave Project -- http://mojave.cs.caltech.edu -->