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

Cryptic syntax error message: operator expected #6629

Closed
vicuna opened this issue Oct 27, 2014 · 3 comments
Closed

Cryptic syntax error message: operator expected #6629

vicuna opened this issue Oct 27, 2014 · 3 comments

Comments

@vicuna
Copy link

vicuna commented Oct 27, 2014

Original bug ID: 6629
Reporter: furuse
Status: closed (set by @alainfrisch on 2015-12-11T17:57:10Z)
Resolution: suspended
Priority: normal
Severity: text
Version: 4.02.1
Target version: 4.03.0+dev / +beta1
Category: ~DO NOT USE (was: OCaml general)
Child of: #5068
Monitored by: @gasche @hcarty

Bug description

(1,2,3,) is rejected by a cryptic message "operator expected".

@vicuna
Copy link
Author

vicuna commented Oct 27, 2014

Comment author: furuse

(1,2,3,);;

Characters 7-8:
(1,2,3,);;
^
Error: Syntax error: operator expected.

@vicuna
Copy link
Author

vicuna commented Oct 29, 2014

Comment author: @damiendoligez

It does say "syntax error", and it does point to the right place...

@vicuna
Copy link
Author

vicuna commented Dec 11, 2015

Comment author: @alainfrisch

Marking as suspended. The switch to a Menhir-based parser might allow better error messages "for free". And concrete patches to improve on the current situation are of course welcome.

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

1 participant