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
Porting camlp4 stuff from 3.09 to 3.10: need help
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Loup Vaillant <loup.vaillant@g...>
Subject: Porting camlp4 stuff from 3.09 to 3.10: need help

I am currently porting code which uses camlp4 from 3.09 to 3.10, and I
am quite stuck.

I would like to know if there is a document which describes the
compatibility breaking differences between the two versions. (The wiki
doesn't seem to have it yet).
It would also help me to know of the predefined quotations, (<:expr<
>>, <:str_item< >>, and such) and what they allow.

For now, I am stuck on this error:

File "", line 78, characters 14-21:
While expanding quotation "str_item" in a position of "expr":
  Parse error: illegal begin of quotation of structure item

The mentioned line 78 is:

  <:str_item< declare end >>

It looks like the "declare end" construct is not allowed any more. Is
there any equivalent in 3.10, and is there a specific bit of
documentation about this?