[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 13:10:23
|
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 |