From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id LAA09586; Mon, 1 Dec 2003 11:22:29 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id LAA09862 for ; Mon, 1 Dec 2003 11:22:25 +0100 (MET) Received: from sockmel.bononia.it (sockmel.bononia.it [193.201.40.5]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id hB1AMO127404 for ; Mon, 1 Dec 2003 11:22:24 +0100 (MET) Received: from fistandantilus.takhisis.org (sockmel.bononia.it [193.201.40.5]) by sockmel.bononia.it (Postfix) with ESMTP id 29B0C56E36; Mon, 1 Dec 2003 11:22:24 +0100 (CET) Received: by fistandantilus.takhisis.org (Postfix, from userid 3148) id B39AF274028; Mon, 1 Dec 2003 11:22:23 +0100 (CET) Date: Mon, 1 Dec 2003 11:22:23 +0100 From: Stefano Zacchiroli To: ocaml ml Cc: Pietro Abate Subject: Re: [Caml-list] parse Message-ID: <20031201102223.GD6333@fistandantilus.takhisis.org> Mail-Followup-To: ocaml ml , Pietro Abate References: <20031201055532.GA27781@anu.edu.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031201055532.GA27781@anu.edu.au> User-Agent: Mutt/1.5.4i X-Loop: caml-list@inria.fr X-Spam: no; 0.00; bononia:01 caml-list:01 1100,:01 pietro:01 abate:01 parses:01 cduce:01 bononia:01 mio:99 ero:99 reso:99 che:99 molto:99 dentro:99 ocaml:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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 http://www.cduce.org/download.html or the debian package "ocaml-ulex"). Cheers. -- ^Stefano Zacchiroli -- Master in Computer Science @ Uni. Bologna, Italy$ ^zack@{cs.unibo.it,debian.org,bononia.it} -- http://www.bononia.it/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 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