help-flex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

best way to quit the lexer


From: Josh
Subject: best way to quit the lexer
Date: Sun, 13 Nov 2005 17:44:48 -0800

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]