[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnubol: problem 9
In a message dated 12/22/99 6:19:34 PM EST, tej@melbpc.org.au writes:
<<
/* problem 9.
- two different repeating constructs in the inspect verb start
with 'identifier' creating an ambiguity
when there is an identifier after 'before/after initial
literal/identifier'.
solution 9.
- scan ahead within inspect verb and change the tk_generic
name token to a magic name
if it is followed by 'for'
(with possible intervening of/in tk_generic_name... and array
reference)
*/
>>
This is difficult to see. Can you show just a few examples or identify the
rules that encounter this? It just seems like those lists of data references
need to yield to key words ALL/LEADING/CHARACTER/FIRST permitting a shift.
Am I understanding?
In the TALLYING branch the first identifier before the FOR does not repeat in
any way, as far as I understand. The contents of the FOR clause can be a
repeating form, but it starts with ALL/LEADING/CHARACTERS and ends with the
data references
In the REPLACING clause the repetition of the ALL/LEADING/FIRST phrase seems
to be similarly unambiguous on the outside, the interior can repeat; which
interior starts and ends
with a data reference. Is that the problem? That looks like no fun at all,
and indeed one of the few places where a construct does not start with a
keyword, but is that really an problem?
At anyrate, why would you want to transfor the leading data reference when it
is followed by FOR, it seem sth eleast ambiguous part of all.
Bob Rayhawk
RKRayhawk@aol.com
--
This message was sent through the gnu-cobol mailing list. To remove yourself
from this mailing list, send a message to majordomo@lusars.net with the
words "unsubscribe gnu-cobol" in the message body. For more information on
the GNU COBOL project, send mail to gnu-cobol-owner@lusars.net.