On 09/25/2009 01:16 AM, Hoang Phung wrote: > Hi all, > > In my project, I inherited the code (Parser and Lexer) generated with > ANTLR by someone else but I couldn't retrieve the original grammar file > from him. Can someone tell me if there is a way to recover the grammar > file from the generated code and embedded comments? Thanks in advance. > The only practical way is to read the code manually and type in the grammar again. I suppose you could construct somethign to do this, but you would need a full parser for the target langauge and lots of inherent knowledge of ANTLR and so on. It is probably quicker to type up a new grammar from scratch.
Jim List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
