[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gnubol: How do we parse this language, anyway?
At 11:09 AM 11/28/99 , Tim Josling wrote:
>add
> size
> subtract
> not size
> display.
>
>How would you specify both size and not size for a verb? The only way you
>seem to
>be end-verb for the nested verbs. But end-verb existed only since cobol
>85, and
>size/not size from memory predate this. So this interpretation would break
>existing code. Which is not likely to be correct.
>
>Thus I predict the not size will bind to the add.
The NOT conditional phrases were introduced in Cobol-85, along with the
scope terminators. The NOT SIZE will bind to the SUBTRACT. To get it to
bind to the ADD, you need END-SUBTRACT (which is why the optional END-x is
allowed on imperative verbs.
At 11:50 AM 11/28/99 , Michael McKernan wrote:
> Randall> I disagree. The only certification there ever was was
> Randall> FIPS certification. Some of the FIPS tests verified that
> Randall> errors were issued for invalid statements like the
> Randall> foregoing.
>
>A little too much hyperbole in the heat of battle. Yes, I remember
>some tests like that, but these cases escaped them, or else the '85
>compiler that I worked on would not have been certified. It's quite
>possible that my statement is true, though, since the audits were an
>open book, and no one invited the auditor before having run them a few
>hundred times.
The compiler probably has a FIPS flagging compile time option. Try to
compile with FIPS flagging set to level 4 and see if you get a warning.
--
RB |\ Randall Bart
aa |/ Barticus@usa.net 818-985-3259 Barticus@att.net
nr |\ 8321 Burnet Av #1, North Hills, CA 91343
dt ||\
a |/ Y2K website: http://users.aol.com/PanicYr00
l |\
l |/ DOT-HS-808-065 I Love You MS^7=6/28/107
--
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.