[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Michael Wohlwend <micha-1@f...> |
| Subject: | Re: [Caml-list] Ocamllex question |
Hi,
On Sunday 23 October 2005 20:02, Matt Gushee wrote:
>
> and comment = parse
> [ ^ '\n' ] { comment lexbuf }
>
> | '\n' { SEP; dict lexbuf }
I'm not quite sure whether I understood your problem, but... doesn' it help to
just return a SEP after a comment:
rule dict = parse
...
| ',' | '\n' { SEP }
| '#' [^ '\n']* '\n' { SEP }
...
Michael