[antlr-interest] TokenStreamRecognitionException class members
Ric Klaren
klaren at cs.utwente.nl
Fri Aug 13 02:20:23 PDT 2004
On Fri, Aug 13, 2004 at 08:25:48AM -0000, beckersheinzsb wrote:
> Why is the member "recog" (of type RecognitionException) of the class
> TokenStreamRecognitionException in the java implementation declared
> as public an in the c++ implementation declared as private?
> I use antlr with c++ and should know how to get the line and column
> information out of the TokenStreamRecognitionException.
> I see no possibility to get this information out if it, except
> botching it out of the return value of toString().
> Has anybody an idea for a nice solution?
Fix the TokenStreamRecognitionException.hpp with a few proxy methods that
relay the getFilename/Line/Column to the underlying RecognitionException
then send me a patch and I'll put in the next release ;)
Cheers,
Ric
--
-----+++++*****************************************************+++++++++-------
---- Ric Klaren ----- j.klaren at utwente.nl ----- +31 53 4893755 ----
-----+++++*****************************************************+++++++++-------
Time what is time - I wish I knew how to tell You why - It hurts to know -
Aren't we machines - Time what is time - Unlock the door
- And see the truth - Then time is time again
From: 'Time what is Time' by Blind Guardian
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/antlr-interest/
<*> To unsubscribe from this group, send an email to:
antlr-interest-unsubscribe at yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list