camfort / fortran-src

Fortran parsing and static analysis infrastructure
https://hackage.haskell.org/package/fortran-src
Other
48 stars 20 forks source link

fix kind param parsing #208

Closed raehik closed 2 years ago

raehik commented 2 years ago

1234_2_8 would incorrectly "recursively" parse 2 kind parameters. Instead, it should fail to compile. Similarly, 123_a_1 should parses 2 kind parameters, but should parse a single kind parameter name of a_1. The issue is fixed by changing the representation for kind parameters, and updating the parsers.