OpenFortranProject / ofp-sdf

SDF grammar for Fortran 2008 with constructors for AST
Other
23 stars 7 forks source link

Implement Cray Pointers #34

Closed rasmussn closed 7 years ago

rasmussn commented 7 years ago

By implementing Cray pointers they can be lowered/rewritten to standard Fortran pointers. A program demonstrating usage is shown below:


integer :: cptr1, cptr2, cptr3 pointer (cptr1, obj1) pointer (cptr2, obj2), (cptr3, obj3(13)) end


rasmussn commented 7 years ago

Fixed by adding CrayPointerDecl and making a decl list to allow multiple pointer associations. Also added OptArraySpec to allow for objects to be associated with specific array elements.