Skip to content

Commit 49f3b9f

Browse files
author
rasmussn
committed
Fixed bug in R636 (AllocateCoarraySpec) and more movement to uppercase/camel-back.
1 parent 8032fd1 commit 49f3b9f

1 file changed

Lines changed: 11 additions & 10 deletions

File tree

src/syntax/R600UseDataObjects.sdf

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -274,34 +274,35 @@ context-free syntax
274274
%%R631
275275
AllocateObject
276276
( '(' {AllocateShapeSpec ','}+ ')' )?
277-
( '[' AllocateCoarraySpec ']' )? -> Allocation {cons("allocation")}
277+
( '[' AllocateCoarraySpec ']' )? -> Allocation {cons("Allocation")}
278278

279279
%%R632
280-
VariableName
281-
| StructureComponent -> AllocateObject {cons("allocate-object")}
280+
%% VariableName %% AMB with alt2
281+
%%| StructureComponent
282+
StructureComponent -> AllocateObject {cons("AllocateObject_AMB")}
282283

283284
%%R633
284-
( LowerBoundExpr ':' )? UpperBoundExpr -> AllocateShapeSpec {cons("allocate-shape-spec")}
285+
( LowerBoundExpr ':' )? UpperBoundExpr -> AllocateShapeSpec {cons("AllocateShapeSpec")}
285286

286287
%%R634
287288
%% int-expr substituted for scalar-int-expr
288289
%%
289-
IntExpr -> LowerBoundExpr {cons("lower-bound-expr")}
290+
IntExpr -> LowerBoundExpr {cons("LowerBoundExpr")}
290291

291292
%%R635
292293
%% int-expr substituted for scalar-int-expr
293294
%%
294-
IntExpr -> UpperBoundExpr {cons("upper-bound-expr")}
295+
IntExpr -> UpperBoundExpr {cons("UpperBoundExpr")}
295296

296297
%%R636
297-
( {AllocateCoshapeSpec ','}+ )?
298-
( LowerBoundExpr ':' )? '*' -> AllocateCoarraySpec {cons("allocate-coarray-spec")}
298+
( {AllocateCoshapeSpec ','}+ ',' )?
299+
( LowerBoundExpr ':' )? '*' -> AllocateCoarraySpec {cons("AllocateCoarraySpec")}
299300

300301
%%R637
301-
( LowerBoundExpr ':' )? UpperBoundExpr -> AllocateCoshapeSpec {cons("allocate-coshape-spec")}
302+
( LowerBoundExpr ':' )? UpperBoundExpr -> AllocateCoshapeSpec {cons("AllocateCoshapeSpec")}
302303

303304
%%R638
304-
Label? 'NULLIFY' '(' {PointerObject ','}+ ')' EOS -> NullifyStmt {cons("nullify-stmt")}
305+
Label? 'NULLIFY' '(' {PointerObject ','}+ ')' EOS -> NullifyStmt {cons("NullifyStmt")}
305306

306307
%%R639
307308
VariableName

0 commit comments

Comments
 (0)