[fpc-pascal] case statement

Adriaan van Os adriaan at adriaan.biz
Fri Dec 15 10:08:36 CET 2023


Note that the same ambiguity exists in the <exception-handler> syntax (and this is less well known)

exceptionhandlers =  [ exception-handler { ";" exception-handler } [ "ELSE" statement-list ] | 
statement-list ] .
exception-handler = "ON" [ identifier ":" ] class-type-identifier "DO" statement .

as <exception-handler> ends with a <statement> and the optional <"ELSE" statement-list> part start 
with "ELSE". Sloppy language design, I assume by Borland.

Regards,

Adriaan van Os



More information about the fpc-pascal mailing list