-
Notifications
You must be signed in to change notification settings - Fork 25
TypesSample
Olivier Smedile edited this page Jul 17, 2019
·
2 revisions
Here's a sample of typedef created with TypeCobol.
01 DateJulian TYPEDEF STRICT PUBLIC.
10 YYYY PIC 9(04).
10 DDD PIC 9(03).
01 DateDB2 TYPEDEF STRICT PUBLIC.
10 YYYY PIC 9(04).
10 filler PIC X value '-'.
10 MM PIC 9(02).
10 filler PIC X value '-'.
10 DD PIC 9(02).
01 Time4 TYPEDEF STRICT PUBLIC.
10 Hour pic 9(02).
10 Minute pic 9(02).
01 Time6 TYPEDEF STRICT PUBLIC.
10 Hour pic 9(02).
10 Minute pic 9(02).
10 Second pic 9(02).
01 Time8 TYPEDEF STRICT PUBLIC.
10 Hour pic 9(02).
10 Minute pic 9(02).
10 Second pic 9(02).
10 Ms pic 9(02).
01 TimeDB2 TYPEDEF STRICT PUBLIC.
05 Hour pic 9(02).
05 filler pic X value '.'.
05 Minute pic 9(02).
05 filler pic X value '.'.
05 Second pic 9(02).
01 TimeStampDB2 TYPEDEF STRICT PUBLIC.
05 DateDB2 type DateDB2.
05 filler pic X value '-'.
05 TimeDB2 type TimeDB2.
05 filler pic X value '.'.
05 Nanosecond pic 9(06).
Introduction
TypeCobol language
-
In a nutshell
-
TypeCobol concepts
TypeCobol Editor
(Type)Cobol parser API
TypeCobol architecture
- Glossary
- Main phases
- How to extend the grammar and semantic check (full example)
- File
- Text
- Code analysis steps
- Program class parser
- Type checker
- Error handler
- Grammars Composition
- Code generation
- Compilation process
(Type)Cobol concepts / reference doc
Contributing