[antlr-interest] Development snapshot pb
Jorge Scandaliaris
j_scandaliaris at yahoo.es
Fri Jun 13 10:29:07 PDT 2003
Ric,
Although I got to compile the library, I can get rid of some
compile errors. I tried some of the examples and the behavior is the
same. It says something about pure virtual functions not being defined
in parser.hpp:
virtual int LA(int i)=0;
virtual RefToken LT(int i)=0;
I had a look and they are not defined in parser.cpp, only in
LLkParserparser. Any ideas?
Here are the details (from building expr example):
Deleting intermediate files and output files for project 'expr - Win32
Debug'.
--------------------Configuration: expr - Win32
Debug--------------------
Compiling...
main.cpp
f:\devel\antlr\cpp\expr\main.cpp(54) : error C2259: 'MyExprParser' :
cannot instantiate abstract class due to following members:
f:\devel\antlr\cpp\expr\myexprparser.hpp(11) : see declaration
of 'MyExprParser'
f:\devel\antlr\cpp\expr\main.cpp(54) : warning C4259: 'int __thiscall
antlr::Parser::LA(int)' : pure virtual function was not defined
f:\tools\antlr-2.7.2dev\lib\cpp\antlr\parser.hpp(74) : see
declaration of 'LA'
f:\devel\antlr\cpp\expr\main.cpp(54) : warning C4259: 'class
antlr::RefCount<class antlr::Token> __thiscall antlr::Parser::LT(int)' :
pure virtual function was not defined
f:\tools\antlr-2.7.2dev\lib\cpp\antlr\parser.hpp(77) : see
declaration of 'LT'
f:\devel\antlr\cpp\expr\main.cpp(54) : error C2259: 'MyExprParser' :
cannot instantiate abstract class due to following members:
f:\devel\antlr\cpp\expr\myexprparser.hpp(11) : see declaration
of 'MyExprParser'
f:\devel\antlr\cpp\expr\main.cpp(54) : warning C4259: 'int __thiscall
antlr::Parser::LA(int)' : pure virtual function was not defined
f:\tools\antlr-2.7.2dev\lib\cpp\antlr\parser.hpp(74) : see
declaration of 'LA'
f:\devel\antlr\cpp\expr\main.cpp(54) : warning C4259: 'class
antlr::RefCount<class antlr::Token> __thiscall antlr::Parser::LT(int)' :
pure virtual function was not defined
f:\tools\antlr-2.7.2dev\lib\cpp\antlr\parser.hpp(77) : see
declaration of 'LT'
MyExprLexer.cpp
MyExprParser.cpp
print_tree.cpp
Generating Code...
Error executing cl.exe.
expr.exe - 2 error(s), 4 warning(s)
Jorge
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20030613/837dc31c/attachment.html
More information about the antlr-interest
mailing list