You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 4256 Reporter:@mjambon Assigned to: ertai Status: closed (set by @xavierleroy on 2010-04-29T12:18:10Z) Resolution: fixed Priority: normal Severity: minor Version: 3.10+dev Fixed in version: 3.10+dev Category: -for Camlp4 use https://github.com/ocaml/camlp4/issues
Bug description
camlp4 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
The text was updated successfully, but these errors were encountered:
Original bug ID: 4256
Reporter: @mjambon
Assigned to: ertai
Status: closed (set by @xavierleroy on 2010-04-29T12:18:10Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 3.10+dev
Fixed in version: 3.10+dev
Category: -for Camlp4 use https://github.com/ocaml/camlp4/issues
Bug description
camlp4 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<
$x$ ;
module M =
struct
();
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<
$x$ ;
module M =
struct
();
end
The text was updated successfully, but these errors were encountered: