Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006244OCamlOCaml generalpublic2013-11-19 19:422013-11-20 00:37
ReporterJason 
Assigned Togasche 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionduplicate 
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
(0010656)
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


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker