[antlr-interest] Ada95

Pan-Wei Ng ngpanwei at yahoo.co.uk
Thu Aug 7 18:06:03 PDT 2003


Hi,

I tried to compile Ada95 grammar from www.antlr.org/grammar/ada

I manage to compile the .g files, but when I compile the main.cpp, I get the
following errors:
adaast.hpp(22) : error C2352: 'antlr::CommonAST::initialize' : illegal call
of non-static member function
        c:\java\pgrm\antlr-2.7.2\lib\cpp\antlr\commonast.hpp(35) : see
declaration of 'initialize'
adaast.hpp(46) : error C2352: 'antlr::BaseAST::addChild' : illegal call of
non-static member function
        c:\java\pgrm\antlr-2.7.2\lib\cpp\antlr\baseast.hpp(69) : see
declaration of 'addChild'
adaast.hpp(50) : error C2352: 'antlr::BaseAST::getFirstChild' : illegal call
of non-static member function
        c:\java\pgrm\antlr-2.7.2\lib\cpp\antlr\baseast.hpp(71) : see
declaration of 'getFirstChild'
adaast.hpp(54) : error C2352: 'antlr::BaseAST::getNextSibling' : illegal
call of non-static member function
        c:\java\pgrm\antlr-2.7.2\lib\cpp\antlr\baseast.hpp(76) : see
declaration of 'getNextSibling'

I am using antlr-2.7.2 with Visual Studio 6. Can anyone help?

Cheers
-- Pan-Wei




 

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




More information about the antlr-interest mailing list