-
Notifications
You must be signed in to change notification settings - Fork 1.2k
"Syntax Error" messages should be more descriptive #6244
Copy link
Copy link
Closed
Description
Original bug ID: 6244
Reporter: Jason
Assigned to: @gasche
Status: closed (set by @gasche on 2013-11-19T23:37:24Z)
Resolution: duplicate
Priority: normal
Severity: minor
Version: 4.01.0
Category: ~DO NOT USE (was: OCaml general)
Duplicate of: #5068
Bug description
I 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 , 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.
Reactions are currently unavailable