Reentrant Flex and Bison
3 Jun 2000 17:33:30 -0400

          From comp.compilers

Related articles
Reentrant Flex and Bison (2000-06-03)
Re: Reentrant Flex and Bison (Randall Hyde) (2000-06-06)
Reentrant Flex and Bison (1999-11-16)
Re: Reentrant Flex and Bison (Burkhard Perkens-Golomb) (1999-12-07)
| List of all articles for this month |

Newsgroups: comp.compilers
Date: 3 Jun 2000 17:33:30 -0400
Organization: - Before you buy.
Keywords: parse, lex, question, comment

I'm trying to create a reentrant scanner/parser using Flex and Bison
(to create a simple scripting language for a Windows app). Bison has
the %pure_parser directive to support creating a reentrant parser. The
problem with this is it changes the interface to yylex to look like

int yylex (YYSTYPE* yyval);

Flex doesn't seem to have the corresponding support this feature. In
other words, Flex is still going to expect yylex to look like "int yylex

Am I missing something?

Eric Tetz
[No, flex doesn't easily make reentrant lexers. -John]

Post a followup to this message

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