stfc / fparser

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.
https://fparser.readthedocs.io
Other
63 stars 29 forks source link

non-backwards compatible changes #416

Open rupertford opened 1 year ago

rupertford commented 1 year ago

Any non-backwards compatible changes should be grouped and added at a suitable/agreed time.

rupertford commented 1 year ago

Adding support for concurrent in issue #403, pr #408 would be better if the f2003 class was split, but this would change the resultant fparser tree. Something along the following lines should be implemented ...

F2003: While_Loop_Cntl: scalar-logical-expression, delim
F2003: Counter_Loop_Cntl: var, lower, upper, [step], delim
F2008: Concurrent_Loop_Cntl: conc_expr, delim
F2018: Concurrent_Loop_Cntl: conc_expr, local_x, delim