Parsing of extended ACCEPT / DISPLAY
Status: Beta
Brought to you by:
kdeschut
There are huge numbers of extensions for ACCEPT and DISPLAY (both for a normal items and screen items). Currently they aren't skipped but lead to "No all input was consumed".
As there are so many variants, a first step would to simply skipping them.
Later on the details can get in.
Some docs:
- MF DISPLAY
- MF ACCEPT
- ACU DISPLAY
- ACU ACCEPT
Rechecked with [r138]:
broken (from the ACCEPT doc links above):
MF/ACU Format 3 "ACCEPT FROM ESCAPE KEY END-ACCEPT" (and others), I've tried to add them in Cobol.kg before to "def mnemonicName", but the fix doesn't work. Now I put some additional effort into this and added more extensions (for example the ACCEPT myvar at 1234 END-ACCEPT)
While this is working now, the unit tests have one fail (this is the reason why I didn't uploaded the files), regression tests are fine.
Please have a look at this.
Related
Commit: [r138]
Last edit: Simon Sobisch 2013-08-08
Applied your patch in r139.
I fixed the failing test, and added some more for the accept_fromOther. This showed that that alternative of the ACCEPT statement was not being used. So I reordered the alternatives slightly to fix that.
All tests pass now.
I set this issue to pending for now. I guess there are many extensions not working at all, but we need more samples to verify that.