Re: [Flex-devel] yytext and similar in -P scanners
flex is a tool for generating scanners
Brought to you by:
wlestes
From: Petr M. <pma...@re...> - 2007-03-30 14:13:01
|
Will Estes wrote: > Thanks for the patch. We'll evaluate it for inclusion in the cvs tree. >=20 > As a point of clarification, though, there is no such thing as "GNU > flex", nor has there ever been. The flex program has never been a part > of the GNU project, although they did provide some hosting resources fo= r > a long time, back in the day. Well, I'm glad to know, so that I don't make such mistake in future. However I didn't relate flex and GNU in any way in my mail. >=20 > It's just "flex". >=20 > Thanks, Thanks, PM >=20 > On Friday, 30 March 2007,15:10 +0200, Petr Machata wrote: >=20 >> Hi list, >> >> the editor `vile' (aka "vi like emacs") currently fails to build with >> new flex, i.e. flex post 2.5.4a. The problem is that in scanners >> generated with -P, symbols yytext, yyleng, yylineno and others are not= >> available. Documentation states that they should be: >> >>> Within your scanner itself, you can still refer to the global >>> variables and functions using either version of their name; but >>> externally, they have the modified name. >> I'm sending the patch that should fix this problem. It does the same >> thing old flex does, namely it introduces #defines for yy symbols. >> >> Comments welcome. >> >> Thanks, >> PM |