This project maintains and develops a Fortran parser called fparser2 written purely in Python which supports Fortran 2003 and some Fortran 2008. A legacy parser fparser1 is also available but is not supported. The parsers were originally part of the f2py project by Pearu Peterson.
Support has been added for both CODIMENSION and CONTIGUOUS as attributes but not as statements, see R531 and R533 respectively in the F2008 spec. These would need to be added to R212other-specification-stmt noting the name change from F2003 where it was specification-stmt. It would be worth changing the name as the new name is also used in F2018. Also note there appears to be an error in the spec as CONTIGUOUS is not added anywhere but it seems clear that it should also be in other-specification-stmt.
Support has been added for both
CODIMENSION
andCONTIGUOUS
as attributes but not as statements, seeR531
andR533
respectively in the F2008 spec. These would need to be added toR212
other-specification-stmt
noting the name change from F2003 where it wasspecification-stmt
. It would be worth changing the name as the new name is also used in F2018. Also note there appears to be an error in the spec asCONTIGUOUS
is not added anywhere but it seems clear that it should also be inother-specification-stmt
.