Related articles |
---|
Reentrant Flex and Bison etetz@my-deja.com (2000-06-03) |
Re: Reentrant Flex and Bison rhyde@shoe-size.com (Randall Hyde) (2000-06-06) |
Reentrant Flex and Bison richard.lanyon@wadham.oxford.ac.uk (1999-11-16) |
Re: Reentrant Flex and Bison perkens@sdm.de (Burkhard Perkens-Golomb) (1999-12-07) |
From: | etetz@my-deja.com |
Newsgroups: | comp.compilers |
Date: | 3 Jun 2000 17:33:30 -0400 |
Organization: | Deja.com - 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
this:
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?
Curious,
Eric Tetz
[No, flex doesn't easily make reentrant lexers. -John]
Return to the
comp.compilers page.
Search the
comp.compilers archives again.