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

Re: gnubol: Re: Magic tokens





Michael McKernan wrote:

> Tim, I'm going to play these straight.  While I think IBM might very
> well have permitted some nested constructs, I'd be very surprised if
> thay did this one.

The particular problem with WHEN only arises in COBOL 85 because at least one of
the verbs involved is new in COBOL 85. As per my previous posting, IBM flags them
as errors, so my intent is correctly diagnose them as errors.

> They're lazier than you are.   Letting SIZE
> ERROR nest is actually a little easier than handling it, but this one
> takes a lot of effort and I don't imagine anyone wants it.

True.

>  One case
> that might fall out may be a WHEN after a WHEN OTHER, but I don't
> want to do anything about it in general.

That's an error which is not too hard to flag.

> What are you doing about illegal NEXT SENTENCE?  I find those
> particularly nasty, and I've had to go outside of syntax proper to
> catch them.

It requires a manual check, in my grammar.Just a few lines of code. Can choose to
refuse to create an object file or not, no drama.

> Mike
>
> Tim> To repeat though, it is not a problem unless IBM
> Tim> has support for the conditional forms of these verbs.




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