help-flex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pure parser patch


From: John Millaway
Subject: Re: pure parser patch
Date: Sun, 28 Jul 2002 12:28:19 -0700 (PDT)

> I've written a patch for flex 2.5.4a which allows it to generate a yylex()
> interface usable by bison's pure calling interface.  Bison actually has four
> types of pure calling interfaces: that with just yylval, that with yylval and
> yylloc, that with yylval and param (a user-supplied parameter), and that with
> yylval, yylloc and param.  With my patch, you compile your lex file with -u,
> -ul, -up or -ulp to get these four interfaces respectively.
> My patch has been very poorly tested (though it has been tested).  No
> documentation has been written for it so far.

Hi Mike,

This feature was added over a year ago. It is implemented in the latest flex
through %option reentrant-bison, -Rb, or --reentrant-bison.. We automatically
detect and handle these four cases. Also, flex comes with a test suite, and
this feature has been put through the ringer. It is fully documented in the
(new) texinfo manual in section, "Reentrant C Scanners with Bison Pure
Parsers."

In the future, you might want to seek out the latest CVS snapshot, look through
the ChangeLog and TODO list, and even contact the maintainer to see what needs
to be done.

ftp://ftp.uncg.edu/people/wlestes/

-John


__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com



reply via email to

[Prev in Thread] Current Thread [Next in Thread]