ofc icon indicating copy to clipboard operation
ofc copied to clipboard

Parser not able to handle Hollerith constants with whitespaces

Open dmikushin opened this issue 7 months ago • 4 comments

This code is actually valid:

Error:./ktshld.f:121,30:
   Invalid initializer
      DATA    BLANK , NAME  / 4H    , 4HTRSH, 4HL     /
                              ^

because Hollerith constants may have whitespaces, and they are unquoted. This is one spectacular piece of Fortran, which exists to confuse the whitespace-based tokenizers.

dmikushin avatar Nov 21 '23 12:11 dmikushin