',' or end of line expected

This error indicates the line contains more characters than expected. Examples:

default:
  param MyParam x  ; x is not allowed
   
while (x > 0) do  ; "do" is not allowed

Remove the superfluous characters to correct this error:

default:
  param MyParam
   
while (x > 0)

See Also
Errors