Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quoted string extension does not work with the camlp4o preprocessor #6965

Closed
vicuna opened this issue Aug 20, 2015 · 1 comment
Closed

Quoted string extension does not work with the camlp4o preprocessor #6965

vicuna opened this issue Aug 20, 2015 · 1 comment

Comments

@vicuna
Copy link

vicuna commented Aug 20, 2015

Original bug ID: 6965
Reporter: joe
Assigned to: @gasche
Status: closed (set by @diml on 2016-12-07T17:25:07Z)
Resolution: duplicate
Priority: normal
Severity: minor
Version: 4.02.3
Category: -for Camlp4 use https://github.com/ocaml/camlp4/issues

Bug description

The quoted string extension doesn't appear to work with the camlp4o preprocessor. For example, the program:

$ cat junk.ml
let _ = {|Hello World!|}

compiles normally

$ ocamlc junk.ml

However, if we use the camlp4o preprocessor, it fails

$ ocamlc -pp "camlp4o" junk.ml
File "junk.ml", line 1, characters 6-7:
Parse error: [expr] expected after "=" (in [cvalue_binding])
File "junk.ml", line 1:
Error: Error while running external preprocessor
Command line: camlp4o 'junk.ml' > /tmp/ocamlpp2e9797

This also occurs when using camlp4o on the toplevel:

{|Hello World!|};;

Error: Parse error: illegal begin of top_phrase

@vicuna
Copy link
Author

vicuna commented Aug 20, 2015

Comment author: @gasche

I could reproduce the issue. The Camlp4 bugtracker has moved to

https://github.com/ocaml/camlp4/issues/

and I have re-created your issue report there:

camlp4/camlp4#96

(Closing this one.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants