ajit vilasrao shinde wrote: > Hello EveryOne, > I have a problem while using generated parserlexer from following > grammar. > while using parser it is giving exception while freeing parser. > parser->free(parser); Can't see anything directly wrong with your grammar, except that you should probably not be using global backtracking, even with memoizing. Methods like free usually are pointing out that you have corrupted memory somewhere in your own code, which malloc picks up when it tries to free up the parser allocations.
If you download and install valgrind, assuming you have a Linux machine available and given the proliferation of run from CD, run from USB, free VM definitions, then you should ;-), then compile all your code in debug mode and run it under valgrind. Valgrind will usually point out your mistake instantly. It is possible there is something wrong in the runtime, but the C runtime users tend to find this pretty quickly, if there is. 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 -~----------~----~----~----~------~----~------~--~---
