From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id UAA29763 for caml-redistribution; Fri, 21 Feb 1997 20:50:40 +0100 (MET) 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 UAA10833 for ; Thu, 20 Feb 1997 20:13:29 +0100 (MET) Received: from cri.ens-lyon.fr (cri.ens-lyon.fr [140.77.1.32]) by nez-perce.inria.fr (8.7.6/8.7.3) with ESMTP id UAA24539 for ; Thu, 20 Feb 1997 20:13:27 +0100 (MET) Received: from octave (octave [140.77.181.110]) by cri.ens-lyon.fr (8.8.5/8.8.1) with SMTP id UAA19632 for ; Thu, 20 Feb 1997 20:13:27 +0100 (MET) Date: Thu, 20 Feb 1997 20:11:52 +0100 (MET) From: David Monniaux X-Sender: dmonniau@octave To: Caml-list Subject: ocamlyacc and error recovery Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: weis [ ENGLISH AT BOTTOM OF MESSAGE ] J'ai un petit probleme avec ocamlyacc lorsque je veux pouvoir gerer les erreurs. Je n'arrive pas a utiliser le pseudo-token "error". La documentation de caml est tres breve a ce sujet et renvoie aux documents sur yacc... qui traitent de yacc pour le langage C et ne disent evidemment pas comment rattraper les erreurs sous ocamlyacc! J'ai toujours une exception Parse_error qui n'est jamais rattrapee. Quelqu'un sait-il comment utiliser le token "error"? [=== ENGLISH ===] I have a small problem with ocamlyacc when I want to handle errors. I can't get the "error" token to work. The caml documentation is very terse on the subject and points to standard texts about yacc... which deal with C-language yacc, not the particular points of ocamlyacc. I always have an uncaught Parser_error exception. Does anyone know how to handle the "error" token? Si l'informatique marchait, cela se saurait." http://www.ens-lyon.fr/~dmonniau