English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
Ocamllex newline counting...
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2008-03-12 (01:00)
From: Nathaniel Gray <n8gray@g...>
Subject: Re: [Caml-list] Ocamllex newline counting...
On Fri, Mar 7, 2008 at 2:57 AM, Till Varoquaux <till.varoquaux@gmail.com> 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:



>>>-- Nathaniel Gray -- Caltech Computer Science ------>
>>>-- Mojave Project -- http://mojave.cs.caltech.edu -->