[fpc-devel] Unhelpful error message

Hans-Peter Diettrich DrDiettrich1 at aol.com
Mon Dec 3 02:19:20 CET 2012


Mark Morgan Lloyd schrieb:

>> What error message do you expect?
> 
> Something that recognises that a message like  <<<<<<< .mine  originates 
> from the project's chosen VCS, and that <<<<<<< is distinct from shl.

+1

A concatenation of the *binary* "<" or "<<" operators, into "<<<<...", 
doesn't make sense (syntactically), so that the scanner could generate 
an appropriate error token (or message). Just as in handling "." .. 
"..." tokens, where more than 3 consecutive dots also are definite 
syntax errors. AFAIR a check for an fourth dot is not performed by the 
scanner, and seems not required because the resulting parser error 
message is sufficient. But a check for a third "<" definitely should be 
added to the scanner, so that a more specific error message can be issued.

DoDi




More information about the fpc-devel mailing list