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.
My reading of the standard is that both of these cases should give an Allocation object whereas the second one gives a bare Data_Ref. I suspect the parse tree should be:
gives:
while
gives:
My reading of the standard is that both of these cases should give an
Allocation
object whereas the second one gives a bareData_Ref
. I suspect the parse tree should be: