Compiler Syntax Check: Better reporting of errors

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Compiler Syntax Check: Better reporting of errors

Post by IdeasVacuum »

When the compiler syntax check finds an error (most often a typo), it should give information on what it has found to be wrong.

I have a good example just now:
Line 1: Syntax error.
That does not tell you what fault has been found, but since a fault has been found, why not report it?

....... by the way, this is Line 1:

Code: Select all

;;08/07/2015 12:09:30
As a comment line only, you would not expect any syntax error. I am thinking in this case there may be an issue with a non- printed character/string, such as a BOM. Would be nice to know what the compiler knows :)
IdeasVacuum
If it sounds simple, you have not grasped the complexity.