Comments (8)
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.
By comparing with production code, it really seems phrase2 is NOT mandatory.
66f711f I modified the grammar according to "real" COBOL code.
from typecobol.
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.
PerformStatement should implement FlowControl as was done for IfStatement in 02982b7.
from typecobol.
perform until p387:
Yes it's allowed to write:
perform procedure-name-1 UNTIL condition-1
So specs must be wrong.
from typecobol.
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.
Is there still a problem with PERFORM?
from typecobol.
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)
- NullReferenceException when getting DataDefinition.StartPosition property
- Incorrect URI management in notifications PublishDiagnostics and MissingCopies
- Check URI management in Language Server
- Value cannot be null. (Parameter 'source')
- InvalidOperationException in lazy field RedefinedVariable of DataRedefines
- Missing diagnostic on invalid picture/usage combination
- PictureType length may be wrong when picture category is NationalEdited
- Missing compatibility check between Picture and Usage
- NullReference in RedefinesChecker.OnNode(DataRedefines redefinesNode) HOT 1
- Optimize the StartPosition property
- CFG in Extended mode maybe wrong
- VALUE clause cannot be specified in conjunction with REDEFINES and for an item having a parent with a VALUE clause
- Upgrade to .NET 8
- Ensure build order
- Do not use Assembly.LoadFrom ?
- Incorrect encoding for alphanumeric literals using hexadecimal notation HOT 3
- Support for LSP refactoring requests HOT 2
- Invalid cast in TableDefinitionExtensions.GetTableSortingKeys HOT 1
- Implement new command AdjustFillers
- Invalide precedence of operators when building abbreviated relation conditions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from typecobol.