-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
259 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
Codegen/test/resources/input/TypeCobol/FormalizedComments.tcbl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
| ||
*<<< My program | ||
@ Description : description | ||
@deprecated: | ||
@ replacedBy : MyFonction2 | ||
@ rEsTrIcTiOn : Do not Use BOOL var | ||
@ need : some needs | ||
- description | ||
@ see : Thank you for your attention | ||
@ todo : | ||
- Add BOOL support | ||
- implement a call counter | ||
*>>> | ||
IDENTIFICATION DIVISION. | ||
PROGRAM-ID. SandBox. | ||
|
||
DATA DIVISION. | ||
LOCAL-STORAGE SECTION. | ||
|
||
*<<< | ||
@ description : inline typedef | ||
*>>> | ||
01 myType TYPEDEF STRICT PUBLIC pic X(01). | ||
|
||
*<<< Vect2D *>>> | ||
01 Vect2D TYPEDEF STRICT. | ||
02 Coord2d. | ||
03 X PIC 9(4). | ||
03 Y PIC 9(4). | ||
|
||
PROCEDURE DIVISION. | ||
|
||
*<<< MyProc info | ||
@ deprec : It is | ||
deprecated | ||
- need : long need | ||
@ todo: | ||
- todo1 | ||
- todo 2 | ||
@ params: | ||
- myDate: just a date | ||
- bla: bla < 2 | ||
- toto: toto | ||
-blu: will be ignored *>>> | ||
DECLARE PROCEDURE MyProc PRIVATE | ||
INPUT myDate TYPE Date | ||
bla Pic S9(1)V9(12) | ||
IN-OUT myBool TYPE BOOL | ||
OUTPUT toto TYPE BOOL | ||
bli Pic PPP999PPP. | ||
PROCEDURE DIVISION. | ||
CONTINUE. | ||
END-DECLARE. | ||
|
||
END PROGRAM SandBox. |
126 changes: 126 additions & 0 deletions
126
Codegen/test/resources/output/TypeCobol/FormalizedComments.tcbl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
*TypeCobol_Version:TestTypeCobolVersion | ||
|
||
*<<< My program | ||
* @ Description : description | ||
* @deprecated: | ||
* @ replacedBy : MyFonction2 | ||
* @ rEsTrIcTiOn : Do not Use BOOL var | ||
* @ need : some needs | ||
* - description | ||
* @ see : Thank you for your attention | ||
* @ todo : | ||
* - Add BOOL support | ||
* - implement a call counter | ||
*>>> | ||
IDENTIFICATION DIVISION. | ||
PROGRAM-ID. SandBox. | ||
|
||
DATA DIVISION. | ||
LOCAL-STORAGE SECTION. | ||
|
||
*<<< | ||
* @ description : inline typedef | ||
* *>>> | ||
*01 myType TYPEDEF STRICT PUBLIC pic X(01). | ||
* | ||
|
||
|
||
|
||
|
||
*<<< Vect2D *>>> | ||
*01 Vect2D TYPEDEF STRICT. | ||
* | ||
|
||
* 02 Coord2d. | ||
* 03 X PIC 9(4). | ||
* 03 Y PIC 9(4). | ||
|
||
PROCEDURE DIVISION. | ||
|
||
*<<< MyProc info | ||
* @ deprec : It is | ||
*deprecated | ||
* - need : long need | ||
* @ todo: | ||
* - todo1 | ||
* - todo 2 | ||
* @ params: | ||
* - myDate: just a date | ||
* - bla: bla < 2 | ||
* - toto: toto | ||
* -blu: will be ignored *>>> | ||
*DECLARE PROCEDURE MyProc PRIVATE | ||
* INPUT myDate TYPE Date | ||
* bla Pic S9(1)V9(12) | ||
* IN-OUT myBool TYPE BOOL | ||
* OUTPUT toto TYPE BOOL | ||
* bli Pic PPP999PPP. | ||
* | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
END PROGRAM SandBox. | ||
* | ||
*<<< MyProc info | ||
* @ deprec : It is | ||
*deprecated | ||
* - need : long need | ||
* @ todo: | ||
* - todo1 | ||
* - todo 2 | ||
* @ params: | ||
* - myDate: just a date | ||
* - bla: bla < 2 | ||
* - toto: toto | ||
* -blu: will be ignored *>>> | ||
*DECLARE PROCEDURE MyProc PRIVATE | ||
* INPUT myDate TYPE Date | ||
* bla Pic S9(1)V9(12) | ||
* IN-OUT myBool TYPE BOOL | ||
* OUTPUT toto TYPE BOOL | ||
* bli Pic PPP999PPP. | ||
*_________________________________________________________________ | ||
IDENTIFICATION DIVISION. | ||
PROGRAM-ID. a726b68dMyProc. | ||
DATA DIVISION. | ||
LINKAGE SECTION. | ||
01 myDate. | ||
02 YYYY PIC 9(4). | ||
02 MM PIC 9(2). | ||
02 DD PIC 9(2). | ||
01 bla Pic S9(1)V9(12). | ||
01 myBool-value PIC X VALUE LOW-VALUE. | ||
88 myBool VALUE 'T'. | ||
88 myBool-false VALUE 'F' | ||
X'00' thru 'S' | ||
'U' thru X'FF'. | ||
01 toto-value PIC X VALUE LOW-VALUE. | ||
88 toto VALUE 'T'. | ||
88 toto-false VALUE 'F' | ||
X'00' thru 'S' | ||
'U' thru X'FF'. | ||
01 bli Pic PPP999PPP. | ||
PROCEDURE DIVISION | ||
USING BY REFERENCE myDate | ||
BY REFERENCE bla | ||
BY REFERENCE myBool-value | ||
BY REFERENCE toto-value | ||
BY REFERENCE bli | ||
. | ||
CONTINUE. | ||
END PROGRAM a726b68dMyProc. |