|Implementing %INCLUDE in flex email@example.com (1997-10-26)|
|Date:||26 Oct 1997 22:15:48 -0500|
Actually developing a parser for PL/I in flex & yacc. The problem is
with the implementation for % INCLUDE statements. Tried to do something
similar to what is given in flex manual. But some problems arise with
Actually the scanner reads "end of buffer or a NUL" inbetween the main
file where there is no end of file. Actually this problem arises on line
nos. that depend on where the INCLUDE statement is present. It occurs on
a line which is few lines after the INCLUDE statement. The Included file
is opened & parsed correctly!!! If i place the INCLUDE statement towards
the end of the program then the program is successfully parsed!!!!!
Is there a problem of some buffer size???
Help is required urgently!!!
Thanks in advance.
[Sounds like your parser is reading ahead farther than you think it is.
Return to the
Search the comp.compilers archives again.