[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNU-COBOL] cocom
The Russian Armoury, eh? I actually pulled this thing off the net
about five months ago, but never got around to looking at it. The
following produces eight (what appear to be) harmless shift/reduce
conflicts. Oddly, having on_size derive "[ON] SIZE..." comes up with
reduce/reduce conflicts. ???
add: ADD
( CORR identifier TO identifier [ ROUNDED ]
| (identifier | NUMERIC)+
( GIVING (identifier [ROUNDED])+
| TO ( (identifier | NUMERIC) GIVING (identifier [ROUNDED])+
| (identifier [ROUNDED])+
)
)
)
[size_error]
[END_ADD]
;
on_size: ( ON SIZE | SIZE ) [ERROR] statement+
;
not_on_size: NOT on_size
;
size_error: not_on_size [on_size]
| on_size [not_on_size]
;
identifier: IDENT ( ( OF | IN ) IDENT)*
;
--
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.