[antlr-interest] getting exception while freeing parser (Is something wrong with grammar rule?)
ajit vilasrao shinde
connectajit at rediffmail.com
Tue Jun 9 23:25:50 PDT 2009
Hello EveryOne, I have a problem while using generated parser\lexer from following grammar. while using parser it is giving exception while freeing parser.parser->free(parser);following is the prototype grammer file. Is something wrong with grammar rule?(i am importing all lexer rules from ExprLexerRules file) I am able to generate Lexer\Parser for following grammar.Identifier used here is like ABD or BCG etc. expression like ABC += BCDgrammar Expression;options { backtrack = true; memoize = true; k = 2; language = C; output = AST; ASTLabelType = pANTLR3_BASE_TREE; }//importing already defined lexer and parser rulesimport ExprLexerRules ;operations : binaryoperation? ; binaryoperation : binaryexpression EOF ; binaryexpression : LPAREN! Identifier (DIVIDEEQUAL | PLUSEQUAL | MINUSEQUAL | TIMESEQUAL)^ Identifier RPAREN! ; DIVIDEEQUAL : '/=';PLUSEQUAL : '+=';MINUSEQUAL : '-=';TIMESEQUAL : '*=';
Ajit V. Shinde
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090610/eb95e66c/attachment.html
More information about the antlr-interest
mailing list