Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: [Caml-list] Custom camlp4 lexers

3 views
Skip to first unread message

Daniel de Rauglaudre

unread,
Jul 21, 2007, 5:35:19 AM7/21/07
to caml...@yquem.inria.fr
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/

_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs

Nicolas Pouillard

unread,
Jul 24, 2007, 12:17:03 PM7/24/07
to Jon Harrop, caml...@yquem.inria.fr
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 <j...@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

0 new messages