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 separate files (closes #411) #425

Closed rupertford closed 1 year ago

rupertford commented 1 year ago

Splits Fortran2008.py into one file per class.

codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.10% :tada:

Comparison is base (0d20a0d) 91.81% compared to head (359693f) 91.91%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #425 +/- ## ========================================== + Coverage 91.81% 91.91% +0.10% ========================================== Files 43 84 +41 Lines 13470 13625 +155 ========================================== + Hits 12367 12524 +157 + Misses 1103 1101 -2 ``` | [Files Changed](https://app.codecov.io/gh/stfc/fparser/pull/425?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=stfc) | Coverage Δ | | |---|---|---| | [src/fparser/two/Fortran2008/\_\_init\_\_.py](https://app.codecov.io/gh/stfc/fparser/pull/425?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=stfc#diff-c3JjL2ZwYXJzZXIvdHdvL0ZvcnRyYW4yMDA4L19faW5pdF9fLnB5) | `100.00% <100.00%> (ø)` | | | [src/fparser/two/Fortran2008/action\_stmt\_c201.py](https://app.codecov.io/gh/stfc/fparser/pull/425?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=stfc#diff-c3JjL2ZwYXJzZXIvdHdvL0ZvcnRyYW4yMDA4L2FjdGlvbl9zdG10X2MyMDEucHk=) | `100.00% <100.00%> (ø)` | | | [src/fparser/two/Fortran2008/action\_stmt\_c816.py](https://app.codecov.io/gh/stfc/fparser/pull/425?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=stfc#diff-c3JjL2ZwYXJzZXIvdHdvL0ZvcnRyYW4yMDA4L2FjdGlvbl9zdG10X2M4MTYucHk=) | `100.00% <100.00%> (ø)` | | | [src/fparser/two/Fortran2008/action\_stmt\_c828.py](https://app.codecov.io/gh/stfc/fparser/pull/425?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=stfc#diff-c3JjL2ZwYXJzZXIvdHdvL0ZvcnRyYW4yMDA4L2FjdGlvbl9zdG10X2M4MjgucHk=) | `100.00% <100.00%> (ø)` | | | [src/fparser/two/Fortran2008/action\_stmt\_r214.py](https://app.codecov.io/gh/stfc/fparser/pull/425?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=stfc#diff-c3JjL2ZwYXJzZXIvdHdvL0ZvcnRyYW4yMDA4L2FjdGlvbl9zdG10X3IyMTQucHk=) | `100.00% <100.00%> (ø)` | | | [src/fparser/two/Fortran2008/alloc\_opt\_r627.py](https://app.codecov.io/gh/stfc/fparser/pull/425?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=stfc#diff-c3JjL2ZwYXJzZXIvdHdvL0ZvcnRyYW4yMDA4L2FsbG9jX29wdF9yNjI3LnB5) | `100.00% <100.00%> (ø)` | | | [src/fparser/two/Fortran2008/allocate\_stmt\_r626.py](https://app.codecov.io/gh/stfc/fparser/pull/425?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=stfc#diff-c3JjL2ZwYXJzZXIvdHdvL0ZvcnRyYW4yMDA4L2FsbG9jYXRlX3N0bXRfcjYyNi5weQ==) | `100.00% <100.00%> (ø)` | | | [src/fparser/two/Fortran2008/attr\_spec\_r502.py](https://app.codecov.io/gh/stfc/fparser/pull/425?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=stfc#diff-c3JjL2ZwYXJzZXIvdHdvL0ZvcnRyYW4yMDA4L2F0dHJfc3BlY19yNTAyLnB5) | `100.00% <100.00%> (ø)` | | | [...rc/fparser/two/Fortran2008/block\_construct\_r807.py](https://app.codecov.io/gh/stfc/fparser/pull/425?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=stfc#diff-c3JjL2ZwYXJzZXIvdHdvL0ZvcnRyYW4yMDA4L2Jsb2NrX2NvbnN0cnVjdF9yODA3LnB5) | `100.00% <100.00%> (ø)` | | | [src/fparser/two/Fortran2008/block\_stmt\_r808.py](https://app.codecov.io/gh/stfc/fparser/pull/425?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=stfc#diff-c3JjL2ZwYXJzZXIvdHdvL0ZvcnRyYW4yMDA4L2Jsb2NrX3N0bXRfcjgwOC5weQ==) | `100.00% <100.00%> (ø)` | | | ... and [33 more](https://app.codecov.io/gh/stfc/fparser/pull/425?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=stfc) | |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

rupertford commented 1 year ago

Ready for first review from @arporter or @sergisiso

rupertford commented 1 year ago

You are correct that this PR simply splits out the classes from Fortran2008.py. Ready for next review from @arporter