Syntax Checker

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:

Syntax Checker

Post by IdeasVacuum »

When the Checker finds something wrong, it just reports the line number and says "Syntax Error". Since it knows there is a fault in the Syntax, it would be nice to be given a clue as to what the problem is.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Syntax Checker

Post by Fred »

Does it always say syntax error ? It should raise the same error than a standard compilation, if not it's a bug.
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: Syntax Checker

Post by IdeasVacuum »

With the exception of missing brackets, e.g. ")" expected and other simple omissions like EndIf, EndProcedure etc, you do often just get that 'syntax error' message - I'm thinking that if an error is detected, it should always be possible to give a clue as to what is wrong.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
Post Reply