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 WAA09258; Fri, 26 Oct 2001 22:14:46 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id WAA09672 for caml-list@pauillac.inria.fr; Fri, 26 Oct 2001 22:14:45 +0200 (MET DST) Received: (from xleroy@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id OAA00369; Fri, 26 Oct 2001 14:36:42 +0200 (MET DST) Date: Fri, 26 Oct 2001 14:36:42 +0200 From: Xavier Leroy To: "Rafael 'Dido' Sevilla" Cc: Caml List Subject: Re: [Caml-list] getting ocamlyacc to continue even after a parse error Message-ID: <20011026143642.E32249@pauillac.inria.fr> References: <20011025180922.A5918@team.ph.inter.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <20011025180922.A5918@team.ph.inter.net>; from sevillar@team.ph.inter.net on Thu, Oct 25, 2001 at 06:09:22PM +0800 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > How do I get ocamlyacc to generate a parser that continues parsing even > after an error? As briefly mentioned in the ocamlyacc manual (section 12.4.4), ocamlyacc, like Yacc, supports error recovery via so-called error tokens and error productions. You'd better consult a good book on Yacc (such as Levine's _Lex&Yacc_), because using error productions effectively is a bit of a black art. > I want to print all the errors in the code that's being > parsed. Good luck. - Xavier Leroy ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr