TypeCobol
TypeCobol copied to clipboard
TypeCobol is an Incremental Cobol parser for IBM Enterprise Cobol 6 for zOS syntax. TypeCobol is also an extension of Cobol 85 language which can then be converted to Cobol85.
When #872 and #219 are done. **Describe the bug** The given parameters of a procedure does not match the expected one, even if they are **To Reproduce** (Type)Cobol code that...
```COBOL declare procedure Dump public input argPtr pointer argLen pic S9(9) COMP-5 . declare procedure Dump public input argPtr pointer argLen pic S9(4) COMP-5 . ``` Syntax error : A...
Using this code : ```COBOL DECLARE PROCEDURE MyProc PRIVATE INPUT myInt TYPE Integer OUTPUT myptr pointer. END-DECLARE. DECLARE PROCEDURE MyProc PRIVATE INPUT myBool TYPE Bool OUTPUT myptr pointer. END-DECLARE. CALL...
declare these types: ```cobol 01 SmallInt TYPEDEF STRICT PUBLIC pic S9(4) COMP-5. 01 Integer TYPEDEF STRICT PUBLIC pic S9(9) COMP-5. 01 BigInt TYPEDEF STRICT PUBLIC pic S9(17) COMP-5. 01 Real...
The code below creates an error on MyProc, only when POINTER is used and the other input parameters is not typed. ```COBOL DECLARE PROCEDURE MyProc PRIVATE INPUT myPtn POINTER. END-DECLARE....
```COBOL declare procedure ToSpan public input buf pic X(1) sz PIC S9(5) COMP-5 output fragment type Span . procedure division. set fragment::ptr to address of buf move sz to fragment::len...
Literal can be passed to a procedure but we doesn't check if its length math the picture description and not even if the type of argument is alpha*numeric*
### Description `shared`: Visible on a specified root namespace and its children Can be used on : - Type (declared in a program, nested, stacked or in a procedure) -...
For #1046, we need a TypeCobolQualifiedSymbolDefinition: ``` SymbolInformation SymbolDefinition TypeCobolQualifiedSymbolDefinition SymbolReference AmbiguousSymbolReference ExternalNameOrSymbolReference QualifiedSymbolReference TypeCobolQualifiedSymbolReference SymbolDefinitionOrReference ExternalName QualifiedTextName ``` So we end up with `TypeCobolQualifiedSymbolDefinition` and `TypeCobolQualifiedSymbolReference` that share a...
`protected`: Visible in the current namespace and its children Can be used on : - Type (declared in a program, nested, stacked or in a procedure) - A type declared...