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
[Caml-list] start conditions in ocamllex
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-02-25 (19:33)
From: Shawn Wagner <shawnw@s...>
Subject: Re: [Caml-list] start conditions in ocamllex
On Wed, Feb 25, 2004 at 11:23:09AM -0800, Kenneth Knowles wrote:
> > > Has anyone thought of implementing start conditions for ocamllex?
> > Can't you get the same effect with multiple entrypoints? Though this syntax
> > is probably cleaner.
> > 
> I disagree; I think different entry points are cleaner.  In some recent release
> they added the ability to pass your own parameter to the rules, and so I
> maintain state by passing a reference to the state.

I wasn't aware you could do that. Makes it a lot nicer than what I was
thinking of, yup.

Shawn Wagner

To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners