Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0004256OCamlCamlp4public2007-04-08 06:472010-04-29 14:18
ReporterMartin Jambon 
Assigned Toertai 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version3.10+dev 
Target VersionFixed in Version3.10+dev 
Summary0004256: <:str_item< module M = struct $x$; ... end >> is rejected
Descriptioncamlp4 version 3.10.0+beta

It seems antiquotations just after the struct keyword are not accepted:

$ cat pa_toto.ml
(* camlp4orf -printer o pa_toto.ml *)

<:str_item<
module M =
struct
  $x$;
  ();
end
>>
$ camlp4orf -printer o pa_toto.ml
File "pa_toto.ml", line 6, characters 2-5:
While expanding quotation "str_item":
  Parse error: [str_items] expected after "struct" (in [module_expr])


It works or at least it is parsed without an error if I place something before the antiquotation, e.g.

<:str_item<
module M =
struct
  ();
  $x$;
end
>>
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0004006)
ertai (developer)
2007-04-08 16:58

This is now fixed in CVS.

- Issue History
Date Modified Username Field Change
2007-04-08 06:47 Martin Jambon New Issue
2007-04-08 16:58 ertai Note Added: 0004006
2007-04-08 16:58 ertai Assigned To => ertai
2007-04-08 16:58 ertai Status new => resolved
2007-04-08 16:58 ertai Resolution open => fixed
2007-04-08 16:58 ertai Fixed in Version => 3.10+dev
2010-04-29 14:18 xleroy Status resolved => closed


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker