Skip to content

Commit a3779d8

Browse files
committed
feat: support array-style cray pointers in Fortran77
1 parent 9a333f0 commit a3779d8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Language/Fortran/Parser/Fixed/Fortran77.y

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,9 @@ POINTER_LIST :: { [ Declarator A0 ] }
607607
| POINTER { [ $1 ] }
608608

609609
POINTER :: { Declarator A0 }
610-
: '(' VARIABLE ',' VARIABLE ')'
610+
: '(' VARIABLE ',' VARIABLE '(' DIMENSION_DECLARATORS ')' ')'
611+
{ Declarator () (getTransSpan $1 $8) $2 (ArrayDecl (aReverse $6)) Nothing (Just $4) }
612+
| '(' VARIABLE ',' VARIABLE ')'
611613
{ Declarator () (getTransSpan $1 $5) $2 ScalarDecl Nothing (Just $4) }
612614

613615
COMMON_GROUPS :: { AList CommonGroup A0 }

0 commit comments

Comments
 (0)