Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006244OCaml~DO NOT USE (was: OCaml general)public2013-11-19 19:422013-11-20 00:37
Assigned Togasche 
PlatformOSOS Version
Product Version4.01.0 
Target VersionFixed in Version 
Summary0006244: "Syntax Error" messages should be more descriptive
DescriptionI would find it very useful to be told _what_ the syntax error is. For example, in

 let foo = 1;
 let bar = 1
 let baz = 1

I want to be told "Syntax error <at characters>, found 'let', expecting 'in'", not just "Syntax Error". It would be even better if it could say "expected non-top-level 'let bar = 1 let ...' to match syntax rule 'let name = value [and name = value]... in'", but I'd be satisfied with being told what the possible valid tokens are.
TagsNo tags attached.
Attached Files

- Relationships
duplicate of 0005068acknowledged ocamlc/camlp4 should give better error messages for syntax errors 

-  Notes
gasche (developer)
2013-11-20 00:37

This is indeed a valid remark, we've a few bug open about that already. Work could/should be done to improve that, but we haven't found the time to work on it yet.

- Issue History
Date Modified Username Field Change
2013-11-19 19:42 Jason New Issue
2013-11-20 00:36 gasche Relationship added duplicate of 0005068
2013-11-20 00:37 gasche Note Added: 0010656
2013-11-20 00:37 gasche Status new => closed
2013-11-20 00:37 gasche Assigned To => gasche
2013-11-20 00:37 gasche Resolution open => duplicate
2017-02-23 16:36 doligez Category OCaml general => -OCaml general
2017-03-03 17:55 doligez Category -OCaml general => -(deprecated) general
2017-03-03 18:01 doligez Category -(deprecated) general => ~deprecated (was: OCaml general)
2017-03-06 17:04 doligez Category ~deprecated (was: OCaml general) => ~DO NOT USE (was: OCaml general)

Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker