fparser icon indicating copy to clipboard operation
fparser copied to clipboard

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 s...

Results 126 fparser issues
Sort by recently updated
recently updated
newest added

Closes #324 Fixes #80 This requires a [PyPI API token](https://pypi.org/help/#apitoken) to be added as a secret named `PYPI_DEPLOYMENT_TOKEN` to this repo. Once that's been added, every new GitHub release will...

reviewed with actions

allocate(grid%data(ndof)) gives: Allocation(Data_Ref('%', (Name('grid'), Name('data'))), Allocate_Shape_Spec_List(',', (Allocate_Shape_Spec(None, Name('ndof')),))) while allocate(grid%coords, mold=grid%data) gives: Data_Ref('%', (Name('grid'), Name('coords'))) My reading of the standard is that both of these cases should give an `Allocation`...

bug

Hi, fparser reports a syntax error if you use string concatenation in a stop statement, despite the code compiling and running fine. It's fine with just a string. Tested with...

bug
in progress
Release

Adds a reference guide at https://fparser-ref.readthedocs.io/en/342_reference_guide (I'll remove the version pointing at this branch once it makes it onto master).

enhancement
reviewed with actions
in progress

Fixes #320 Includes #325 as I used it in the tests Restrictions C806, C810, C811 not implemented yet, which forbid certain other statements from appearing within the blocks. I wasn't...

Processing some LFRic code, fparser fails: File "/home/kbc59144/Projects/fparser/src/fparser/two/Fortran2003.py", line 10307, in match raise InternalError( fparser.two.utils.InternalError: 'An Only_List can contain only Name or Rename entries but found 'Generic_Spec' when matching 'use...

bug

Some of the rules using blockbase have a strict order. This PR enforces this where it was not already used. The parser runs a bit faster as a result. However,...

enhancement
in progress

Hello, I am walking an AST, looking for specific comments in the tree. I encountered some unexpected behavior regarding the hierarchy of the comments. This impacts the printer too. My...

in progress

Hi, In the AST, I did not find a way to differenciate function calls and array references. My sample program is the following: ```fortran function mytestfunc(i) result(x) integer, intent(in) ::...

Hello, Most of the code I am working with is using "function" like macro definitions like `#define LOG(MSG, LEVEL) print *, LEVEL, MSG`. Version 0.0.16 of fparser2 seems to not...