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
lexer library
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-08-18 (22:45)
From: Jon Harrop <jon@f...>
Subject: Re: [Caml-list] lexer library
On Saturday 18 August 2007 19:39:52 skaller wrote:
> I am interested in building a dynamically extensible lexer.. can
> anyone recommend any libraries or tools that would help?
> I could use Dypgen (extensible GLR parser) for this, but it is
> probably too slow.
> A system using combinators (rather than strings) would be preferred,
> and Unicode support would be nice too. Ideally the lexer automaton
> could be saved with Marshal, in which case the time to build the
> automaton isn't important.

The new camlp4 looks like it supports this but I'm damned if I can figure out 
how you use it. There is a beautiful tutorial on the Wiki that fizzles out 
just when it gets exciting.

Dr Jon D Harrop, Flying Frog Consultancy Ltd.
OCaml for Scientists