Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] parse <tags>
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2003-12-01 (10:22)
From: Stefano Zacchiroli <zack@b...>
Subject: Re: [Caml-list] parse <tags>
On Mon, Dec 01, 2003 at 04:55:32PM +1100, Pietro Abate wrote:
> I'm trying to write a simple parser (below) but I've problems parsing
> tag-like keywords. Probably this is a problem related with the lexer.
> does anybody know a solution that doesn't imply heavy modifications to
> the (Genlex) lexer ?

Genlex module parses just the ocaml syntactic categories, tags you're
trying to parse are not one of them.

You can try ulex or the former, I've never looked at the details but I'm
pretty sure it can do what you want since they are used to parse XML
documents.  (See or the debian
package "ocaml-ulex").


^Stefano Zacchiroli -- Master in Computer Science @ Uni. Bologna, Italy$
^zack@{,,} --$
^Frequentando il mio maestro mi ero reso conto [.] che la logica poteva$
^servire a molto a condizione di entrarci dentro e poi di uscirne -Adso$

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: