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 JAA00550; Tue, 23 Dec 2003 09:53:03 +0100 (MET) 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 JAA00079 for ; Tue, 23 Dec 2003 09:53:02 +0100 (MET) X-SPAM-Warning: Sending machine is listed in blackholes.five-ten-sg.com Received: from vsmtp3.tin.it (vsmtp3.tin.it [212.216.176.223]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id hBN8r1b09434 for ; Tue, 23 Dec 2003 09:53:01 +0100 (MET) Received: from dalamar.takhisis.org (80.117.63.226) by vsmtp3.tin.it (7.0.019) id 3FE031EE00187796 for caml-list@inria.fr; Tue, 23 Dec 2003 09:53:00 +0100 Received: from fistandantilus.takhisis.org (fistandantilus.takhisis.org [192.168.1.113]) by dalamar.takhisis.org (Postfix) with ESMTP id 3CC67B770 for ; Tue, 23 Dec 2003 09:53:00 +0100 (CET) Received: by fistandantilus.takhisis.org (Postfix, from userid 3148) id A8A15274062; Tue, 23 Dec 2003 09:52:59 +0100 (CET) Date: Tue, 23 Dec 2003 09:52:59 +0100 From: Stefano Zacchiroli To: caml-list@inria.fr Subject: Re: [Caml-list] Frustrated Beginner Message-ID: <20031223085259.GA2000@fistandantilus.takhisis.org> Mail-Followup-To: caml-list@inria.fr References: <1072152186.59938.30.camel@tylere> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1072152186.59938.30.camel@tylere> User-Agent: Mutt/1.5.4i X-Loop: caml-list@inria.fr X-Spam: no; 0.00; bononia:01 caml-list:01 camlp:01 ocamlc:01 -pp:01 camlp:01 ocamlc:01 bononia:01 mio:99 ero:99 reso:99 che:99 molto:99 dentro:99 syntax:02 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Mon, Dec 22, 2003 at 11:03:07PM -0500, Tyler Eaves wrote: > comes to Syntax Errors. It would be so helpful if it could give an error > message that actually told the programmer what it expected. I realise Try to compile using camlp4 (e.g. "ocamlc -pp camlp4o" instead of "ocamlc" alone). It really helps since it print out what the parser is expecting instead of simply "syntax error". I also suggest to have a look at the revised syntax described in the camlp4 manual. I'm not using it because I've discovered it too late and I've to work everyday with code written in the standard one, but I found it clearer in a lot of cases. Since you're starting from scratch I think you can give it a chance. Hope this helps. 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