re-enterant flex scanner

"Amnon Cohen" <amnonc@mercury.co.il>
16 Nov 1999 23:49:23 -0500

          From comp.compilers

Related articles
re-enterant flex scanner amnonc@mercury.co.il (Amnon Cohen) (1999-11-16)
Re: re-enterant flex scanner jhcheng@my-deja.com (1999-12-01)
| List of all articles for this month |
From: "Amnon Cohen" <amnonc@mercury.co.il>
Newsgroups: comp.compilers
Date: 16 Nov 1999 23:49:23 -0500
Organization: NetVision Israel
Keywords: lex, question

What is the easiest way to write a re-entrant scanner using flex?
The C++ mode provides reentrancy, but not parsing from a string
(yy_scan_buffer) which I need.


What is best, to generate a C scanner, and hack the generated code
to make it re-entrant, or generate a C++ scanner, and retrofit the code
for yy_scan_buffer?


Please cc any suggestions to me at amnonc@mercury.co.il


- Amnon Cohen


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.