Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
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:

http://caml.inria.fr/mantis/view.php?id=3930

Cheers,
-n8

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