Ok. In a separate email. Mari
-----Original Message----- From: Sam Harwell [mailto:[email protected]] Sent: Wednesday, September 28, 2011 6:17 PM To: 'Mari Matinlassi'; [email protected] Subject: RE: [antlr-interest] Csharp target, Recover(input, e) I've never seen this occur before. Can you send me a project with a grammar and input that exhibits this? Thanks, Sam -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Mari Matinlassi Sent: Wednesday, September 28, 2011 10:37 AM To: [email protected] Subject: [antlr-interest] Csharp target, Recover(input, e) Hi, I am doing a grammar for C sharp target. I have following problem, I need help with… When parser input contains unexpected character, let´s say ‘*’ or ‘<’ that is not defined in any lexer/parser rule or token, happens the following: 1. RecognitionException (subtype MismatchedTokenException)will be thrown from the rule in question. This OK. 2. Error reported is ok. Something like “mismatched input [@20,56:55='',<18>,8:2] expecting ENDOFCLASS” 3. Recover method will be called. This takes forever(or at least 10 seconds), then another exception will be thrown. Either “OutOfMemoryException” or “ArgumentOutOfRangeException” Shouldn´t Recover(input, e) method recover from this kinds of errors? What am I doing wrong? Thanks for help, Mari List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address 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.
