I understand that if I get a RecognitionException, I can extract the line and column from the exeception.
However, suppose I'm inside a rule and I decide that I have a semantic error (i.e, variable types aren't compatible or something). At that point I want to generate a Semantic Error that will be caught at the top level but I still need to know (at least) what line the semantic error occurred. I tried to get that info out of the lexer but it always returns the last line of the source code so that doesn't help. I must be missing something non-obvious (to me) and would appreciate suggestions. Thanks, David Jameson 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 -~----------~----~----~----~------~----~------~--~---
