caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Porting camlp4 stuff from 3.09 to 3.10: need help
@ 2008-04-09  9:46 Loup Vaillant
  2008-04-09 12:47 ` [Caml-list] " Richard Jones
  0 siblings, 1 reply; 2+ messages in thread
From: Loup Vaillant @ 2008-04-09  9:46 UTC (permalink / raw)
  To: Caml List

Hello,

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 "pa_ocamlconf.ml", 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?

Thanks,
Loup


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Caml-list] Porting camlp4 stuff from 3.09 to 3.10: need help
  2008-04-09  9:46 Porting camlp4 stuff from 3.09 to 3.10: need help Loup Vaillant
@ 2008-04-09 12:47 ` Richard Jones
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Jones @ 2008-04-09 12:47 UTC (permalink / raw)
  To: Loup Vaillant; +Cc: Caml List

On Wed, Apr 09, 2008 at 11:46:52AM +0200, Loup Vaillant wrote:
> 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.

I found the camlp4 wiki to be somewhat useful, and Martin Jambon /
Nicolas Pouillard's example of the differences between a 3.09 and a
3.10 extension to be a little useful too:

  http://brion.inria.fr/gallium/index.php/Camlp4
  http://martin.jambon.free.fr/examples/pa_json_static_3100beta.html

AFAIK the list of predefined quotations is the same as for 3.09, but
maybe this page will help:

  http://brion.inria.fr/gallium/index.php/Abstract_Syntax_Tree

> 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?

Use the ordinary syntax instead?

Rich.

-- 
Richard Jones
Red Hat


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-04-09 12:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-09  9:46 Porting camlp4 stuff from 3.09 to 3.10: need help Loup Vaillant
2008-04-09 12:47 ` [Caml-list] " Richard Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).