Grant Jacobs wrote:
If you do something like:
uses SomeUnit, AnotherUnit, ;
const int_width = 6 ;
You'll get an error of the form:
module/unit `int_width' could not be compiled
It seems the parser sees the last comma of the unit list and skips until the next identifier in searching for the next unit, instead of running into the semicolon and thinking "whoa, we're missing a unit name".
Yes, that's a known issue:
: the compiler does not always recover well after a parse error : <199911040915.KAA11168@@humulus.daimi.au.dk>
As I wrote the other day, a perfect solution is not possible, anyway (because at least in some cases the computer can't guess what was intended), but the heuristics can certainly be improved. If someone has any experience in parser error recovery strategies, feel free to improve it ...
Frank