OpenFortranProject / ofp-sdf

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

forall-stmt fails to parse #2

Closed rasmussn closed 11 years ago

rasmussn commented 11 years ago

The following statement fails to parse:

  FORALL (j=1:2) x(j) = 13

The problem is that there are/were two EOS rules for the statement. One for the forall-stmt and one for the forall-assignment-stmt. It was fixed by removing EOS from the ForallStmt production.