Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add BNF comments for the different array specs.

  • Loading branch information...
commit 849ce1b7eef56374fe801b6dce5db174faecac75 1 parent e0fce1b
Bill Wendling authored

Showing 1 changed file with 20 additions and 0 deletions. Show diff stats Hide diff stats

  1. +20 0 include/flang/AST/Expr.h
20 include/flang/AST/Expr.h
@@ -283,6 +283,10 @@ class ArraySpec {
283 283 };
284 284
285 285 /// ExplicitShapeSpec - Used for an array whose shape is explicitly declared.
  286 +///
  287 +/// [R516]:
  288 +/// explicit-shape-spec :=
  289 +/// [ lower-bound : ] upper-bound
286 290 class ExplicitShapeSpec : public ArraySpec {
287 291 ExprResult LowerBound;
288 292 ExprResult UpperBound;
@@ -305,6 +309,10 @@ class ExplicitShapeSpec : public ArraySpec {
305 309
306 310 /// AssumedShapeSpec - An assumed-shape array is a nonallocatable nonpointer
307 311 /// dummy argument array that takes its shape from its effective arguments.
  312 +///
  313 +/// [R519]:
  314 +/// assumed-shape-spec :=
  315 +/// [ lower-bound ] :
308 316 class AssumedShapeSpec : public ArraySpec {
309 317 ExprResult LowerBound;
310 318
@@ -324,6 +332,10 @@ class AssumedShapeSpec : public ArraySpec {
324 332
325 333 /// DeferredShapeSpec - A deferred-shape array is an allocatable array or an
326 334 /// array pointer.
  335 +///
  336 +/// [R520]:
  337 +/// deferred-shape-spec :=
  338 +/// :
327 339 class DeferredShapeSpec : public ArraySpec {
328 340 DeferredShapeSpec();
329 341 public:
@@ -337,6 +349,10 @@ class DeferredShapeSpec : public ArraySpec {
337 349
338 350 /// AssumedSizeSpec - An assumed-size array is a dummy argument array whose size
339 351 /// is assumed from that of its effective argument.
  352 +///
  353 +/// [R521]:
  354 +/// assumed-size-spec :=
  355 +/// [ explicit-shape-spec , ]... [ lower-bound : ] *
340 356 class AssumedSizeSpec : public ArraySpec {
341 357 // FIXME: Finish
342 358 public:
@@ -348,6 +364,10 @@ class AssumedSizeSpec : public ArraySpec {
348 364
349 365 /// ImpliedShapeSpec - An implied-shape array is a named constant taht takes its
350 366 /// shape from the constant-expr in its declaration.
  367 +///
  368 +/// [R522]:
  369 +/// implied-shape-spec :=
  370 +/// [ lower-bound : ] *
351 371 class ImpliedShapeSpec : public ArraySpec {
352 372 ExprResult LowerBound;
353 373

0 comments on commit 849ce1b

Please sign in to comment.
Something went wrong with that request. Please try again.