best way to quit the lexer
Josh <[email protected]>
| Newsgroups | gmane.comp.lex.flex.general |
|---|---|
| Message-ID | <[email protected]> |
Hi. Could anyone suggest a way of terminating a flex lexer from the "outside", e.g. from a function defined in a Bison parser, without leaking memory? The yyterminate() macro is only good within a lexer action, and YYABORT in a parser action will not deallocate the input buffer. Thanks for any tips. Josh