Open lsafina opened 3 months ago
Yes FASTFortranLabelReference
is not a very good name, but I would also like to reuse common concept whenever possible.
Introducing a terminalStatementLabel
means that the labels of the Do statement are different from other labels and it does not seem to me that this is very much the case.
So I would like a common concept of LabelDefinition or LabelDeclaration : a label to which a Goto statement (or arithmetic if, or continue) can refer to
inviting @uNouss to the discussion
ignore for the moment
Design of the
do
statement usesFASTFortranLabelReference
to represents
inDO s [,] loop-control
.However,
s
here is not a label reference of ado
statement, but a label reference of its terminal statement.Thus I propose to add property
terminalStatementLabel
->FASTFortranIntegerLiteral
to aFASTFortranDoStatement