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

Re: gnubol: refmod again (fwd)



As far as I can tell there is no extraneous comma problem. Commas as separate
tokens mean *nothing*, except in literals and PICs and maybe as a substitute for
a space. The lexer can throw them away.

You are looking for a way to delimit two arithmetic expressions in a function
call or (in Std COBOL 4)  in an array reference. There is no way other than "the
next token can't fit as part of the previous expression". They have just enough
rules to make it unambiguous (eg unary plus/minus must be preceded by stuff that
could allow the unary plus/minus to be interpreted as a normal plus/minus).

Tim Josling.

>  Can
> anyone hazard a guess about the scope of the extraneous comma
> problem?




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