Hi,<br><br>Is there any way to supress ANTLR comments in the Generated Lexer and Parser code.<br><br>Every where it says, // $ANTLR 3.1.1 D:\\dev\\workspace\\workspace_contivo\\TranslatorType3Rpt.g 2009-03-06 19:55:09<br><br>
in all the rules, it includes comments like below, it is referring physical location, the generated java files has checked in to the CVS repository and doesnt make sense to have local machine's foldernames.<br><br> // $ANTLR start "document"<br>
// D:\\dev\\workspace\\workspace_contivo\\TranslatorType3Rpt.g:231:1: document : translationType inputSection outputSection ;<br><br> <br>Similary I want to give the grammar file location in the resource file name and read it from there, instead of having the absolute path like below <br>
in the generated Parser code.<br><br>public String getGrammarFileName() { return "D:\\dev\\workspace\\workspace_contivo\\Conversion Utility\\TranslatorType3RptStd.g"; }<br><br>I searched in the ANTLR book and couldnt find anything.<br>
<br>Any help would be great.<br><br>Thanks in advance.<br><br>Regards,<br>Mani<br>