O
olig9
Hello,
is there a way to feed an ifstream to a parser generated with flex and
bison? I could see that flex wants a FILE* for reading, but I only
have an ifstream (actually and ifstream*) for input.
It seems that flex++ can use an ifstream; but how does the generated
lexer then work with bison?
Or is there a (portable) way to get a FILE* from an ifstream?
Thanks in advance,
Oliver Gerlich
PS: can you recommend an open news server for reading and posting to
this newsgroup (as a replacement for Google Groups)?
is there a way to feed an ifstream to a parser generated with flex and
bison? I could see that flex wants a FILE* for reading, but I only
have an ifstream (actually and ifstream*) for input.
It seems that flex++ can use an ifstream; but how does the generated
lexer then work with bison?
Or is there a (portable) way to get a FILE* from an ifstream?
Thanks in advance,
Oliver Gerlich
PS: can you recommend an open news server for reading and posting to
this newsgroup (as a replacement for Google Groups)?