Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Frustrated Beginner
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Stefano Zacchiroli <zack@b...>
Subject: Re: [Caml-list] Frustrated Beginner
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