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

Camlp4 fails on valid syntax #8240

Closed
vicuna opened this issue Aug 7, 2003 · 3 comments
Closed

Camlp4 fails on valid syntax #8240

vicuna opened this issue Aug 7, 2003 · 3 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Aug 7, 2003

Original bug ID: 1788
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Full_Name: Paul Govereau
Version: 3.04
OS: Linux 2.4 (Debian)
Submission from: cairn.eecs.harvard.edu (140.247.62.157)

Camlp4 reports a syntax error when pretty printing the following code:

let (<<) f g h = f (g h)

@vicuna
Copy link
Author

vicuna commented Aug 14, 2003

Comment author: administrator

Camlp4 reports a syntax error when pretty printing the following code:

let (<<) f g h = f (g h)

"<<" is a keyword of Camlp4, related to quotations. If you give option
"-no_quot" to camlp4o, it will ignore quotations and take "<<" as a normal
infix identifier. (as of version 3.07+beta1; I'm not sure about earlier
versions)

As far as I can tell, these are all the identifiers that you should avoid if
you
want to work with camlp4:

<<    <:    >>    $     $$    $:    

-- Damien

@vicuna
Copy link
Author

vicuna commented Aug 14, 2003

Comment author: administrator

added a note to the reference manual - DD

@vicuna vicuna closed this as completed Aug 14, 2003
@vicuna
Copy link
Author

vicuna commented Aug 16, 2003

Comment author: administrator

Ok, thanks. Sorry for the erroneous bug report, I thought I read the
manual carefully, but I guess I didn't. Thanks for your response.

Paul

On Aug 14, Damien Doligez wrote:

Camlp4 reports a syntax error when pretty printing the following code:

let (<<) f g h = f (g h)

"<<" is a keyword of Camlp4, related to quotations. If you give option
"-no_quot" to camlp4o, it will ignore quotations and take "<<" as a normal
infix identifier. (as of version 3.07+beta1; I'm not sure about earlier
versions)

As far as I can tell, these are all the identifiers that you should avoid if
you
want to work with camlp4:

<<    <:    >>    $     $$    $:    

-- Damien

@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant