Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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: 2003-12-23 (08:53)
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.

^Stefano Zacchiroli -- Master in Computer Science @ Uni. Bologna, Italy$
^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 Archives:
Bug reports: FAQ:
Beginner's list: