CSharp parser performance

Jakob Petsovits jpetso at gmx.at
Tue Aug 8 17:40:18 UTC 2006


On Monday, 7. August 2006 12:53, Roberto Raggi wrote:
> global functions are pretty bad, so you're right we don't want to use a
> global "yylex()", but this isn't really a problem with flex :-) the trick
> is to use the YY_DECL macro. For example,
(snip)

Hm... looking at it again, it still can't work this way, because Flex is 
storing all of its state in static variables. That means we either have to 
use the reentrancy option or the "experimental" C++ class generation.
I tend to prefer the C++ class.

Greetings from
  Jakob




More information about the KDevelop-devel mailing list