Thread View: net.lang.c++
1 messages
1 total messages
Started by ed schan
Fri, 15 Aug 1986 12:55
Help un sing YACC/LEX with C++
Author: ed schan
Date: Fri, 15 Aug 1986 12:55
Date: Fri, 15 Aug 1986 12:55
22 lines
1330 bytes
1330 bytes
I am trying to use a YACC/LEX generated parser with action routines written in C++. If I avoid using the C++ stream IO facility, I can get it to work reasonably well (of course the YACC generated parser produces numerous warnings from the compiler). When I try to use stream IO, things break. The main problem is that I can get the stream get(char) function to give me the newline character that the parser is waiting to see. I haved tried various kludges using the get(char*, int, int) function but this is even worse. It keeps returning without putting any new characters in my buffer and refuses to return that newline. The question - can anyone offer any help on how to get around this problem? Also, is there a version of YACC and LEX which will generate clean C++ code? Thanks in advance. Ed Schan AT&T Bell Labs ihnp4!ihesa!eps 1-312-979-3564
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads