#29 Parsing of extended ACCEPT / DISPLAY

v1.0 (example)
pending
nobody
None
5
2013-08-09
2013-08-02
No

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

Related

Discussion: Missing Support for COBOL 2002 (level 78, EXIT SECTION/PERFORM, length of section names, BASED/ALLOCATE/FREE)

Discussion

  • Simon Sobisch

    Simon Sobisch - 2013-08-08

    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
  • KrisDS

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

     
  • Simon Sobisch

    Simon Sobisch - 2013-08-09

    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.

     
  • Simon Sobisch

    Simon Sobisch - 2013-08-09
    • status: open --> pending
     

Log in to post a comment.