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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
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.
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.
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.