On 25/09/2021 20:10, holyghost wrote:
Hi,
here's a part of my Cobol compiler written in Perl 5 : https://metacpan.org/dist/Cobol-Compiler
There should be enough code to continue on it.
HAND,
holly
Here's a part of my COBOL Compiler written in COBOL:
...
PROCEDURE DIVISION.
MAINLINE SECTION.
M01.
PERFORM INIT
PERFORM PROCESS-COBOL-SOURCE
PERFORM CLEAN-UP
STOP RUN.
INIT SECTION.
I01.
...
I01-EXIT.
EXIT.
PROCESS-COBOL-SOURCE SECTION.
PCS01.
...
PCS01-EXIT.
EXIT.
CLEAN-UP SECTION.
CU01.
...
CU01-EXIT.
EXIT.
It still needs a bit of work but it is looking pretty good so far...
Pete.
--
I used to write *COBOL*; now I can do *anything*...
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)