Andy Porter
Andy Porter
I've been vaguely aware of doctest (https://docs.python.org/3/library/doctest.html) for a while but have just had a play with it and think it could be useful for us to make sure that...
Currently an array of Scalars is represented by an `ArrayType` and the type and precision of an element are given by the `intrinsic` and `precision` properties of that class, respectively....
Simon has reported: "Apparently unbounded loops with a nested inner loop are incorrectly reproduced: the nested loops of PROGRAM x INTEGER :: y DO DO y=1,2 END DO END DO...
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`...
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).
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...
In PSyclone we still manipulate the fparser2 parse tree in certain circumstances. I've found that if one deletes all the content from a Specification_Part node then asking for the string...
There are a lot of constraints for allocate-stmt and currently we do not enforce/check any of them.
We have a lot of lines that are too long. I'll fix those in this issue.
With more people contributing/using fparser I think a Reference Guide would be useful. (At least, I'll certainly find it useful :-) ) This will be a two-stage thing - add...