• Post Reply Bookmark Topic Watch Topic
  • New Topic

Conversion Tool Development

 
Bairavarsu Kamalakar
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am in process of developing tool(Java) to convert Forte 4GL code to Java and like to have info on this.

1. What (java.io and java.util) class should be used for better reading/writing and scanning and filtering key words in a file etc.,
2. Above all is there any example code available for similear scenario and
3. How to code this tool using java.

All you inputs/suggestions are welcomed to help me.

Thanks in Advance.

Kamalakar B.
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Language processing is pretty tough stuff. Look into some serious parsing tools like JavaCC and Antlr. There is a significant learning curve to building grammars and handling the trees you get as output, but it's far more reliable than trying to read and understand tokens on your own.

Did you talk to Sun? They own both languages and might have some tips or tools.

The Forte4GL build process generates C++ and then compiles it. You might find more tools for C++ to Java, though I bet the C++ code is really ugly.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!