DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH
 

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

Info Catalog (flex.info.gz) unnamed-faq-69 (flex.info.gz) FAQ (flex.info.gz) unnamed-faq-71
 
 unnamed-faq-70
 ==============
 
 
      To: Bik.Dhaliwal@bis.org
      Subject: Re: Flex question
      In-reply-to: Your message of Mon, 26 Jan 1998 13:05:35 PST.
      Date: Tue, 27 Jan 1998 22:41:52 PST
      From: Vern Paxson <vern>
 
      > That requirement involves knowing
      > the character position at which a particular token was matched
      > in the lexer.
 
      The way you have to do this is by explicitly keeping track of where
      you are in the file, by counting the number of characters scanned
      for each token (available in yyleng).  It may prove convenient to
      do this by redefining YY_USER_ACTION, as described in the manual.
 
      		Vern
 
Info Catalog (flex.info.gz) unnamed-faq-69 (flex.info.gz) FAQ (flex.info.gz) unnamed-faq-71
automatically generated byinfo2html