You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In #392, Sergi pointed out that doing repr of a matched block construct gave confusing information on the name.
However, it turns out that this is already true of the Block_Label_Do_Construct, e.g. test_block_nonlabel_do_construct has:
obj = tcls(
get_reader(
"""\
foo:do i=1,10
a = 1
end do foo
"""
)
)
i.e., the name 'foo' only appears in the End_Do_Stmt and not in the Nonlabel_Do_Stmt. The difficulty is that the label ('foo' in this case) remains an attribute of the Line object constructed by the reader and is not available within the match method. This Line object is only added to an object (under the item attribute) after it has been constructed following a successful match.
The text was updated successfully, but these errors were encountered:
In #392, Sergi pointed out that doing
repr
of a matched block construct gave confusing information on the name.However, it turns out that this is already true of the Block_Label_Do_Construct, e.g. test_block_nonlabel_do_construct has:
and
obj
is:i.e., the name 'foo' only appears in the
End_Do_Stmt
and not in theNonlabel_Do_Stmt
. The difficulty is that the label ('foo' in this case) remains an attribute of theLine
object constructed by the reader and is not available within thematch
method. ThisLine
object is only added to an object (under theitem
attribute) after it has been constructed following a successful match.The text was updated successfully, but these errors were encountered: