Thread-safe / reentrant bison + flex
问题 I would really prefer a working example to any explanation. Whatever I read so far on Bison's documentation site contradicts whatever Flex says. One says to declare yylex as int yylex (yyscan_t yyscanner); another one wants it to be: int yylex(YYSTYPE *lvalp, YYLTYPE *llocp); What I really need is the location information. I'm not sure as of yet if I need YYSTYPE (I don't have a use for this information right now, but maybe in the future I will). Unrelated to the above, and as a bonus, I'd be