• Cobol Compiler in Perl 5

    From holyghost@21:1/5 to All on Sat Sep 25 10:10:27 2021
    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

    --
    (__)
    oo )
    |_/\

    My Software & Art company : https://ko-fi.com/brandywine9

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From pete dashwood@21:1/5 to holyghost on Tue Oct 5 17:15:32 2021
    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)
  • From Pat Van Canada@21:1/5 to All on Wed Oct 20 06:07:13 2021
    very neat, thanks for sharing!

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)