* Custom camlp4 lexers
@ 2007-07-21 7:24 Jon Harrop
2007-07-21 9:33 ` [Caml-list] " Daniel de Rauglaudre
2007-07-24 16:14 ` Nicolas Pouillard
0 siblings, 2 replies; 3+ messages in thread
From: Jon Harrop @ 2007-07-21 7:24 UTC (permalink / raw)
To: caml-list
IIRC, there was mention before that camlp4 even allows you to specify lexers
inline. How is this done and are there any examples?
--
Dr Jon D Harrop, Flying Frog Consultancy Ltd.
OCaml for Scientists
http://www.ffconsultancy.com/products/ocaml_for_scientists/?e
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Caml-list] Custom camlp4 lexers
2007-07-21 7:24 Custom camlp4 lexers Jon Harrop
@ 2007-07-21 9:33 ` Daniel de Rauglaudre
2007-07-24 16:14 ` Nicolas Pouillard
1 sibling, 0 replies; 3+ messages in thread
From: Daniel de Rauglaudre @ 2007-07-21 9:33 UTC (permalink / raw)
To: caml-list
Hi,
On Sat, Jul 21, 2007 at 08:24:34AM +0100, Jon Harrop wrote:
> IIRC, there was mention before that camlp4 even allows you to specify lexers
> inline. How is this done and are there any examples?
Perhaps you think of the specific syntax of parsers of character streams ?
I implemented that in camlp5 (previously named camlp4s). See doc at:
http://pauillac.inria.fr/~ddr/camlp5/doc/html/lexers.html
If interested, camlp5 is downloadable at:
http://pauillac.inria.fr/~ddr/camlp5/
--
Daniel de Rauglaudre
http://pauillac.inria.fr/~ddr/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Caml-list] Custom camlp4 lexers
2007-07-21 7:24 Custom camlp4 lexers Jon Harrop
2007-07-21 9:33 ` [Caml-list] " Daniel de Rauglaudre
@ 2007-07-24 16:14 ` Nicolas Pouillard
1 sibling, 0 replies; 3+ messages in thread
From: Nicolas Pouillard @ 2007-07-24 16:14 UTC (permalink / raw)
To: Jon Harrop; +Cc: caml-list
There is ulex [1], that is a great lexer generator for Unicode and
OCaml with a camlp4 syntax extension.
[1]: http://www.cduce.org/download.html
On 7/21/07, Jon Harrop <jon@ffconsultancy.com> wrote:
>
> IIRC, there was mention before that camlp4 even allows you to specify lexers
> inline. How is this done and are there any examples?
>
--
Nicolas Pouillard
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-07-24 16:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-21 7:24 Custom camlp4 lexers Jon Harrop
2007-07-21 9:33 ` [Caml-list] " Daniel de Rauglaudre
2007-07-24 16:14 ` Nicolas Pouillard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox