Version française
Home     About     Download     Resources     Contact us    
Browse thread
ocamllex and yyless, putting back chars in lexbuf
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Dario Teixeira <darioteixeira@y...>
Subject: Re: [Caml-list] ocamllex and yyless, putting back chars in lexbuf
Hi,

> Is there a way in ocamllex to put back certain characters
> in the buffer. In flex you can do that

It is also possible with Ulex, using Ulexing.rollback.

Even if you don't need the UTF8 features, I suggest you take a
look at Ulex anyway; the approach used (it's a syntax extension)
provides greater flexibility.  Moreover, it also handles latin1
streams fine.

Cheers,
Dario Teixeira