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 and python-style indentation
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2009-07-01 (07:31)
From: Andreas Rossberg <rossberg@m...>
Subject: Re: [Caml-list] ocamllex and python-style indentation
On Jul 1, 2009, at 04.13 h, Mike Lin wrote:
>> Comments and string literals are no problem, since the lex wrapper  
>> will
>> never see anything inside them as separate tokens anyway.
> OCaml comments can be nested, and must be nested parenthetically. :)

I know. (Haskell has nested comments, too, btw.) That does not make a  
difference, though - it is all handled by lex already. In fact, my  
code handled nested comments just fine.

- Andreas