help-flex
[Top][All Lists]
Advanced

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

pure parser patch


From: mike burrell
Subject: pure parser patch
Date: Sun, 28 Jul 2002 12:24:21 -0600
User-agent: Mutt/1.3.25i

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.

Basically I just wanted to see why kind of feedback it got before I worked on
it further.

The patch is hopefully attached.  It's also available at
ftp://mikpos.dyndns.org/pub/src/flex-2.5.4a-pure-parser.diff{.gz}.  Excuse me
if this is the wrong e-mail address to send this to.

-- 
 /"\                                                 m i k e   b u r r e l l
 \ /     ASCII RIBBON CAMPAIGN                                address@hidden
  X        AGAINST HTML MAIL,
 / \      AND NEWS TOO, dammit

Attachment: flex-2.5.4a-pure-parser.diff
Description: Text document


reply via email to

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