Posted By:
merom_klein
Posted On:
Monday, April 30, 2001 01:52 AM
Hi can you supply a main.cpp example as you did in the java version main.java? i tried to create my own main.cpp but it didn't compile well: #include #include "l.hpp" #include "p.hpp" void main () { using namespace std; basic_istream x(); L lexer(x); P parser(lexer); parser.startRule(); } i get the following compilation error: C:antlrantlr-2.7.1libcppsrcmain.cpp(13) : error C2664: '__thiscall L::L(class std::basic_istream > &)' : cannot convert parameter 1 from 'class std::basic_istream > (void)' to 'class std::basic_istream > &' Context does
More>>
Hi
can you supply a main.cpp example
as you did in the java version main.java?
i tried to create my own main.cpp
but it didn't compile well:
#include
#include "l.hpp"
#include "p.hpp"
void main ()
{
using namespace std;
basic_istream
x();
L lexer(x);
P parser(lexer);
parser.startRule();
}
i get the following compilation error:
C:antlrantlr-2.7.1libcppsrcmain.cpp(13) : error C2664: '__thiscall L::L(class std::basic_istream
> &)' : cannot convert parameter 1 from 'class std::basic_istream
> (void)'
to 'class std::basic_istream
> &'
Context does not allow for disambiguation of overloaded function
can you explain what is wrong with this
and how to fix it?
i need an answer urgently
i would appreciate it very much if you
answer this shortly
sincerely
merom klein