Menu

No mountain too high...

Developers
VenkatK
2009-08-31
2013-04-29
  • VenkatK

    VenkatK - 2009-08-31

    This was the title of the book by a marathon runner who broke many world records.

    The relevance here is that I am, alone, climbing the high mountain of developing a compiler/crss-compiler/translator. Anybody wanting to join me in development of RES - An Open Cobol To Java Translator are welcome.

     
    • Nobody/Anonymous

      Hi Venkat, thanks for sharing your work here.

      I downloaded the 1.0alpha release, installed it under Windows XP (Java 1.6.0_12) and tried
      java -jar RES.jar cobol\HELLO.CBL

      Which resulted in:

      RES Cobol 2 Java - (c) Venkat Krishnamurthy 2009
      Exception at line 30 :       play 'This is under No Section  under Procedure Body in a paragrac
      java.lang.StringIndexOutOfBoundsException: String index out of range: 6
              at java.lang.String.charAt(Unknown Source)
              at com.res.cobol.Preprocessor.preprocessMainline(Preprocessor.java:476)
              at com.res.cobol.Preprocessor.preprocess(Preprocessor.java:580)
              at com.res.cobol.Main.main(Main.java:114)
      com.res.cobol.parser.ParseException
              at com.res.cobol.Main.main(Main.java:117)
      Done.

      I don't know if this is deliberate or expected, but I was expecting the samples to compile...

      Regards,
        Clinton.

       
      • Nobody/Anonymous

        I found out I needed the "-free" switch "To Translate a free format COBOL program:"...RTFM

          java –jar RES.jar -free COBOL\HELLO.CBL

        and no more Exception.

         
      • Nobody/Anonymous

        I found out I needed the "-free" switch "To Translate a free format COBOL program:"...RTFM

          java –jar RES.jar -free COBOL\HELLO.CBL

        and no more Exception.

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.