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 LAA18888; Wed, 4 Jun 2003 11:19:52 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id LAA19037 for ; Wed, 4 Jun 2003 11:19:50 +0200 (MET DST) Received: from students.mimuw.edu.pl (zodiac.mimuw.edu.pl [193.0.96.128]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h549JoH14380 for ; Wed, 4 Jun 2003 11:19:50 +0200 (MET DST) Received: from localhost (localhost [127.0.0.1]) by students.mimuw.edu.pl (Postfix) with ESMTP id 11A6817C25 for ; Wed, 4 Jun 2003 11:19:48 +0200 (CEST) Received: from students.mimuw.edu.pl ([127.0.0.1]) by localhost (zodiac [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02426-05 for ; Wed, 4 Jun 2003 11:19:47 +0200 (CEST) Received: by students.mimuw.edu.pl (Postfix, from userid 2738) id B1D1F17B68; Wed, 4 Jun 2003 11:19:47 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by students.mimuw.edu.pl (Postfix) with ESMTP id 8229A4648 for ; Wed, 4 Jun 2003 11:19:47 +0200 (CEST) Date: Wed, 4 Jun 2003 11:19:47 +0200 (CEST) From: Lukasz Lew X-X-Sender: ll189417@zodiac.mimuw.edu.pl To: caml-list@inria.fr Subject: [Caml-list] Syntax error In-Reply-To: <941EB0B0-91BE-11D7-B411-000393B9096C@is.titech.ac.jp> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new X-Spam: no; 0.00; lukasz:01 lew:01 189417:01 zodiac:01 ocaml:01 caml:01 mimuw:01 tar:01 syntax:02 exception:02 parsers:03 genlex:04 ocamlyacc:05 problem:07 examples:07 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi. I am using Genlex and ocaml streams and parsers. And when I catch exception Stream.Error "", I can not generate other message than "syntax error". How can I obtain informations about line number or character number, where the error ocurred ? In ocaml examples at http://caml.inria.fr/Examples/oc.tar.gz, function pos_in is used, but it returns always number of last character in stream. Do you have any ideas? And how ocamlyacc deals with this problem? Regards, Lukasz Lew ------------------- 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