[Flex-devel] Reentrant serialized table question
flex is a tool for generating scanners
Brought to you by:
wlestes
From: Joe K. <kr...@ni...> - 2008-10-14 22:18:23
|
In the reentrant scanner, the serialized table data is not part of the reentrant struct. This is reasonable, because that is how it works for static tables. Loading the tables is essentially a "class" initialization that must be done before any scanner objects are used. As global initialization functions, they really should not include a specific object reference. The only place the object argument is actually references is in calling yy_fatal_error(). Maybe there should be a separate fatal-error function for errors not associated with a specific object? Joe Krahn |