GithubHelp home page GithubHelp logo

Statement: PERFORM about typecobol HOT 8 CLOSED

wiztigers avatar wiztigers commented on August 22, 2024
Statement: PERFORM

from typecobol.

Comments (8)

wiztigers avatar wiztigers commented on August 22, 2024

shows an issue about the grammar as written p388.
Is phrase2 mandatory in PERFORM..VARYING ?
Spec says it is, but tests are written as it was not !

I'm waiting for some COBOL expert position to settle this issue. Thanks in advance !

from typecobol.

wiztigers avatar wiztigers commented on August 22, 2024

SPEC GAP!
By comparing with production code, it really seems phrase2 is NOT mandatory.
66f711f I modified the grammar according to "real" COBOL code.

from typecobol.

wiztigers avatar wiztigers commented on August 22, 2024

SPEC GAP!
p387 of the spec, there is NO WAY to write PERFORM .. UNTIL without tossing in a THRU. Either you write "PERFORM procedure_1 THROUGH procedure_N UNTIL condition", or you write "PERFORM UNTIL condition imperative_statements".
However, real code contradicts this.

c4e437d I modified the grammar according to "real" COBOL code.

from typecobol.

wiztigers avatar wiztigers commented on August 22, 2024

PerformStatement should implement FlowControl as was done for IfStatement in 02982b7.

from typecobol.

osmedile avatar osmedile commented on August 22, 2024

perform until p387:
Yes it's allowed to write:
perform procedure-name-1 UNTIL condition-1
So specs must be wrong.

from typecobol.

osmedile avatar osmedile commented on August 22, 2024

perform varying p388:
phrase 2 is optionnal, it's allowed to write
perform procedure-name-1 varying identifier-2 from identifier-3 BY identifier-4 UNTIL condition-1

from typecobol.

smedilol avatar smedilol commented on August 22, 2024

Is there still a problem with PERFORM?

from typecobol.

wiztigers avatar wiztigers commented on August 22, 2024

It's not as much a problem as a "work in progress" situation.
I'm currently building the syntax tree during the semantic analysis phase (in ProgramClassBuilder), and the PERFORM statement (as long as the other flow control statements such as IF or EVALUATE) must have a correct and tested node construction before our work on these last statements can be considered done.

from typecobol.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.