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] 3 camlp4 questions
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-10-18 (08:39)
From: Chris Hecker <checker@d...>
Subject: [Caml-list] 3 camlp4 questions

1.  Are the latest camlp4 manual and tutorial in the camlp4 cvs tree 
somewhere, or are they available as a tarball for downloading?  The 3.06 
versions are available as a tarball or as webpages, and the latest (3.06+6) 
are available as webpages, but I can't find them as a tarball.

2.  I'm trying to compile otags 3.04.3 but it's dying in

ocamlc -pp "camlp4o q_MLast.cmo" -c -I "`camlp4 -where`"
File "", line 105, characters 33-43:
While expanding quotation "class_type":
Parse error: ';' expected after [class signature item] (in [class type])
Preprocessor error
make: *** [pr.cmo] Error 2

That line looks like this:

     | <:class_type< object $cst$ $list:csf$ end >> ->
	List.iter pe_class_sig_item csf

This is with the cvs version of camlp4.  I don't know enough camlp4 yet to 
fix it.

3.  I'm trying to use camlp4o parsing in my toplevel running in emacs (on 
Win2k).  It works fine most of the time.  However, if I send a large buffer 
of text to the toplevel, emacs and the toplevel hang.  It's behaving 
exactly like a similar problem I had with the toplevel that I fixed and 
documented here:

With that fix (taking out the output for comments and newlines in, the toplevel works fine without camlp4o on these big files, 
but with camlp4o (and the fix) it still hangs.  The question is, is there a 
similar place in the camlp4o source that's outputting something per newline 
parsed at the top level?  In other words, does camlp4 output anything while 
it's eating input, or just when it finishes?

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: