[antlr-interest] ASTLabelType in c++ mode

Ric Klaren klaren at cs.utwente.nl
Tue Oct 28 04:30:02 PST 2003


On Tue, Oct 28, 2003 at 01:13:00PM +0100, Jörg Hälker wrote:
> i tried to use the ASTLabelType option in c++ mode. but if i do this the
> gcc produces an error:
> 
> Parser.hpp:115: conflicting return type specified for `virtual RefMyAST
> Parser::getAST()'
> 
> /usr/antlr/lib/cpp/antlr/Parser.hpp:103: overriding `virtual
> antlr::RefAST antlr::Parser::getAST()'
> 
> any suggestions what i could do to solve this problem?

Yup that's a problem with the newer gcc's and vc's too I think. Grab a
development snapshot from 

http://wwwhome.cs.utwente.nl/~klaren/antlr/

Cheers,

Ric
--
-----+++++*****************************************************+++++++++-------
    ---- Ric Klaren ----- j.klaren at utwente.nl ----- +31 53 4893722  ----
-----+++++*****************************************************+++++++++-------
  Chaos often breeds life, when order breeds habit.
  --- Henry B. Adams, The Education of Henry Adams

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 




More information about the antlr-interest mailing list