From rybin@possum.srcc.msu.su Fri Mar 14 04:49:54 1997 Return-Path: Received: from ida.org by cronus.csed.ida.org (SMI-8.6/SMI-SVR4) id EAA06927; Fri, 14 Mar 1997 04:49:53 -0500 Received: from sw-eng.falls-church.va.us (ns1.sw-eng.falls-church.va.us) by ida.org (4.1/SMI-4.1) id AA07350; Fri, 14 Mar 97 04:50:26 EST Received: from crocus.gamma.ru by sw-eng.falls-church.va.us (8.7.1/) id JAA28507; Fri, 14 Mar 1997 09:41:05 GMT Received: from srcc.UUCP (uucp@localhost) by crocus.gamma.ru (8.7.6/8.7.3) with UUCP id MAA08533 for asis-comment@sw-eng.falls-church.va.us; Fri, 14 Mar 1997 12:43:43 +0300 (MSK) Received: by gamma.srcc.msu.su; Fri, 14 Mar 1997 12:43:02 +0300 Received: by possum.srcc.msu.su (UUPC/@ v5.09gamma, 14Mar93); Fri, 14 Mar 1997 12:35:23 +0300 To: asis-comment@sw-eng.falls-church.va.us Cc: rybin@crocus.gamma.ru Message-Id: Organization: Information Systems, SRCC, MSU From: "Sergey I. Rybin" Date: Fri, 14 Mar 97 12:35:22 +0300 X-Mailer: BML [MS/DOS Beauty Mail v.1.36] Subject: Text images of labels Lines: 50 Content-Length: 1408 Status: OR !topic Text/String images for labels !reference ASIS 95-15.2, 20.22, 3.11.3 !from Sergey Rybin !keywords A_Defining_Identifier, label, Defining_Name_Image,Element_Image !discussion In ASIS, statement labels are represented by Elements of A_Defining_Identifier kind. The question is - what would be better to return for A_Defining_Identifier Element representing a label as a String/Text image of such an Element - Label_Identifier or <>? I think, in the current ASIS definition the documentation of the queries Asis.Declarations.Defining_Name_Image and Asis.Text.Element_Image does not give the direct answer, and some clarification comments should be added for the case of labels. I would say, that now the ASIS definition gives more justification for choosing the first alternative (that is, without "<< >>", but another question is which alternative is better for applications? The second one gives the possibility to make the difference between <> and << Label_Identifier >> or even << -- some crazy comment Label_Identifier -- another crazy comment >> Note, that the current ASIS definition does not give any ability to get the location of "<<" and ">>" for labels. (More accurate, "<<" can be located as the span beginning of labeled statement, but this is true for the first statement only). Any opinions? Sergey Rybin