DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH
 

(flex.info.gz) unnamed-faq-77

Info Catalog (flex.info.gz) unnamed-faq-76 (flex.info.gz) FAQ (flex.info.gz) unnamed-faq-78
 
 unnamed-faq-77
 ==============
 
 
      To: "Hans Dermot Doran" <htd@ibhdoran.com>
      Subject: Re: flex problem
      In-reply-to: Your message of Wed, 15 Jul 1998 21:30:13 PDT.
      Date: Tue, 21 Jul 1998 14:23:34 PDT
      From: Vern Paxson <vern>
 
      > To overcome this, I gets() the stdin into a string and lex the string. The
      > string is lexed OK except that the end of string isn't lexed properly
      > (yy_scan_string()), that is the lexer dosn't recognise the end of string.
 
      Flex doesn't contain mechanisms for recognizing buffer endpoints.  But if
      you use fgets instead (which you should anyway, to protect against buffer
      overflows), then the final \n will be preserved in the string, and you can
      scan that in order to find the end of the string.
 
      		Vern
 
Info Catalog (flex.info.gz) unnamed-faq-76 (flex.info.gz) FAQ (flex.info.gz) unnamed-faq-78
automatically generated byinfo2html