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] labelled expr in quotation #8306

Closed
vicuna opened this issue Sep 29, 2003 · 2 comments
Closed

[camlp4] labelled expr in quotation #8306

vicuna opened this issue Sep 29, 2003 · 2 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Sep 29, 2003

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

Bug description

Full_Name: Yutaka Oiwa
Version: 3.07
OS: Linux
Submission from: h219-110-065-001.catv01.itscom.jp (219.110.65.1)

Labelled application is not correctly parsed in quotation.

#load "q_MLast.cmo"
let _ = <:expr<f ~x:y z>>

produces

File "test.ml", line 2, characters 17-19:
While expanding quotation "expr":
Parse error: end of input expected after [expression] (in [expression])

Adding space before ":" (i.e. <:expr<f ~x :y z>>) works,
but this is not in correct syntax outside quotation.

This bug did not appear in 3.07+beta1.

@vicuna
Copy link
Author

vicuna commented Sep 30, 2003

Comment author: administrator

Fixed by MM, 2003/09/30.

@vicuna vicuna closed this as completed Sep 30, 2003
@vicuna
Copy link
Author

vicuna commented Sep 30, 2003

Comment author: administrator

This now fixed in the CVS tree (to be publish tonight). Thanks for the
report,

-- Michel

oiwa@yl.is.s.u-tokyo.ac.jp wrote/écrivait (Mon, Sep 29, 2003 at 11:19:37PM +0200):

Full_Name: Yutaka Oiwa
Version: 3.07
OS: Linux
Submission from: h219-110-065-001.catv01.itscom.jp (219.110.65.1)

Labelled application is not correctly parsed in quotation.

#load "q_MLast.cmo"
let _ = <:expr<f ~x:y z>>

produces

File "test.ml", line 2, characters 17-19:
While expanding quotation "expr":
Parse error: end of input expected after [expression] (in [expression])

Adding space before ":" (i.e. <:expr<f ~x :y z>>) works,
but this is not in correct syntax outside quotation.

This bug did not appear in 3.07+beta1.

@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