[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gnubol: problem 9



RKRayhawk@aol.com wrote:
> 
> 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? 

INSPECT a tallying x for all y ZZZ.
INSPECT a tallying X for all y ZZZ for leading z.

So ZZZ could be something else you are counting or something you
are putting the next count into. I think.

Take out the magic tokens and see the conflicts, if you have
bison which I think you said you do.

Tim Josling

--
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.