Next: Reentrant Example, Previous: Uses for Reentrant Scanners, Up: Reentrant C Scanners [Contents][Index]
The API for reentrant scanners is different than for non-reentrant scanners. Here is a quick overview of the API:
%option reentrant must be specified.
yyscanner
yylex_init and yylex_destroy must
be called before and after yylex, respectively. Other back ends
may or may not require this.
flex variables.
yyextra.