Murali schrieb: > I need the parser which can give the import list, fuction list, variable > names and types, etc., > > Is antlr satisfies the same?
There is an example grammar which parses Java source code. > > Can u send me the usage of antlr to getting import list, function list, > commented lines and variable names and types from giving java code as input > list You have to change the grammar in such a way that you store the required information. After a successful parsing, you merely have to read it out. I'm not sure from your description if you actually need a full symbol table or a lesser structure is sufficient. Just write down which information you need, how you can store it and look where in the grammar it is located. Johannes > > > > -- > With Lov, > Murali. > > > ------------------------------------------------------------------------ > > > List: http://www.antlr.org:8080/mailman/listinfo/antlr-interest > Unsubscribe: > http://www.antlr.org:8080/mailman/options/antlr-interest/your-email-address > List: http://www.antlr.org:8080/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org:8080/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 -~----------~----~----~----~------~----~------~--~---
