English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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: 2009-11-12 (20:32)
From: Dario Teixeira <darioteixeira@y...>
Subject: Re: [Caml-list] ocamllex and yyless, putting back chars in lexbuf

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

Dario Teixeira