[antlr-interest] Re: Translating PASCAL (or C) into JAVA

Andy Tripp atripp at comcast.net
Fri Mar 11 07:23:54 PST 2005

See http://www.jazillian.com for a tool that translates C (but not
Pascal, C++, or anything else) to Java. This tool uses

>Every get a response on this one?
>Hello all,
>I'm new to the mailing list and I'm 'playing' with ANTLR since a few 
>days. The ideas behind ANTLR are magnificant and I find it a very 
>intelligent system, a real contribution to Computer Science.
>Now I have a simple question.
>I must find a system to translate Pascal files into JAVA. (can be C 
>into JAVA aswell)
>Can that be done with ANTLR?
>Is there a quick solution to do that (perhaps starting from the 
>Pascal example?)
>I have testet the Pascal grammer (antlr-2.7.1\java\examples\pascal) 
>and the GNU C parser from the website.
>ANTLR produces me the JAVA-files PascalLexer.java PascalParser.java 
>and PascalTokenTypes.java
>and I can build these together and test it with the example P_0_1.pas
>I also tested it with the grammer from Sinan (message 2398 Re: Ter, 
>Would you mind looking at ....) which builds me an AST.
>My problem is that I want to translate this P_0_1.pas into JAVA code!
>Is that possible?

More information about the antlr-interest mailing list