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

RE: gnubol: Hacks needed to parse COBOL



I don't know if there is any thought of taking your GNU compiler thru the
CCVS (certification) tests.  If so, it IS important to point to the right
columns - at least for items that are flagged in those tests.  When NIST ran
the tests, they manually checked that you got each line and column correct
(but this really only applies to items that are outside a specified subset of
the Standard - not for extensions or syntax errors).

Having said that, I do agree with Randall's comment on this particular
syntax.  As far as the '85 Standard goes, something is wrong in the
subscript - but you can't really tell what.  If the C is actually an element
in a two-dimensional array, then it is the parenthesis that are wrong, not
the number of subscripts.

Bill Klein
  wmklein <at> ix.netcom.com

> -----Original Message-----
> From: owner-gnu-cobol@wallace.lusars.net
> [mailto:owner-gnu-cobol@wallace.lusars.net]On Behalf Of Randall Bart
> Sent: Wednesday, December 01, 1999 10:59 PM
> To: gnu-cobol@lusars.net
> Cc: gnu-cobol@lusars.net
> Subject: Re: gnubol: Hacks needed to parse COBOL
>
>
> At 12:13 12/1/99 , Tim Josling wrote:
> >move 1 to c (a (1)).
> >
> >What is the correct error message here? "Too many array index expressions
> >for c"?
> >Or  "a is not an array and should not have array index expression"?
>
> How about:
>
> move 1 to c (a (1)).
> ------------------^
> ERROR: Invalid Subscript
>
> I think it's more important to point the user at the right place in the
> code, than to give the "right" error message.
>
> Note, I'm not saying the error message must point at the final right
> paren.  Anywhere between the "to" and the end of the expression
> would be fine.
> --
> RB |\  Randall Bart
> aa |/  Barticus@usa.net        1-818-985-3259       Barticus@att.net
> nr |\  8321 Burnet Av #1, North Hills, CA 91343
> dt ||\                                Computer Programmer since 1972
> a   |/ I Love You               12 years Unisys/Burroughs experience
> l   |\ MS^7=6/28/107                          Will work for paycheck
> l   |/ DOT-HS-808-065   http://users.aol.com/PanicYr00/RBResume.html
>
> --
> 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.


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