Hi everyone, I want to do the java refactoring, now , I finished the java.g and javatree.g. I am not quite sure what should I do next. I read Terence Parr's Language Translation Using ANTLR and StringTemplate http://www.codegeneration.net/tiki-read_article.php?articleId=77. Cos refactioring is not like Language Translation, only a small part of the code need to be changed, like chang for loop to while loop. Therefore, my question is: Do I need to change every rules in java.g like form 1 to 2,change the output=template, and write the related java.stg including all the template? 1. program : (declaration)+ ; 2. program returns [StringTemplate code=template("program")] : (declaration[code])+ ; In that way, my javatree.g is useless, right? I am totally lost. Thanks in advance. Annie _________________________________________________________________ MSN 表情魔法书,改变你的对话时代! http://im.live.cn/emoticons/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "il-antlr-interest" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en -~----------~----~----~----~------~----~------~--~---
List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
