转载自:http://www.lemoda.net/c/reentrant-parser/index.html
Making a reentrant (thread-safe) parser with Flex and Bison involves several stages.
To eliminate global variables from Flex, use the following line:
%option reentrant
This changes yylex[......]