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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.