Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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 <> 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 -- -->