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
64 stars 29 forks source link

split Fortran2008.py into one file per class #411

Closed rupertford closed 1 year ago

rupertford commented 1 year ago

The Fortran2008.py file is getting large and it would be better to have a Fortran2008 directory containing a separate file for each class with an init that imports all of the files. There may be an issue with the class generation and class hierarchy generation.

rupertford commented 1 year ago

I tested this out in https://github.com/stfc/fparser/tree/split_f2008_file and have got it to work. I'll wait until #408 is on master before progressing this.

rupertford commented 1 year ago

I'll create a Fortran2008 directory containing an init file and move the Fortran2008.py file into this directory first before splitting out the classes as I also need to move the class generation code into the init file and update the logic that calls this.

rupertford commented 1 year ago

Created branch 411_move_fortran2008_file

rupertford commented 1 year ago

Now that #417 is on master I can split the Fortran2008.py file into one file per class.

rupertford commented 1 year ago

Created branch 411_split_file