Translating PASCAL (or C) into JAVA

sucho_at_work sucho_at_work at yahoo.de
Mon Aug 5 03:50:38 PDT 2002


Hi Terence,

can you detail the second step a bit?
What do I have to do to go from the tree towards the targer language?

Best regards,

Jan

> 2) Manipulate the tree (intermediate form) in multiple passes using a 
> tree grammar, slowing morphing it towards your target language.
> 
> 3) When you think that your intermediate form is very close to the 
> target language then you can do a simple walk of the tree spitting out 
> text again.  Each action in the grammar does a small bit of the work
and 
> you pray that the emergent behavior results in valid output text. ;)
> 
> I think i'll start a simple faq entry on this :)
> 
> Terence
> --
> Chief Scientist & Co-founder, http://www.jguru.com
> Creator, ANTLR Parser Generator: http://www.antlr.org



More information about the antlr-interest mailing list