|
@@ -971,6 +971,7 @@ extern "C" int eggyywrap(void); // declared below.
|
|
|
|
|
|
|
|
static int yyinput(void); // declared by flex.
|
|
static int yyinput(void); // declared by flex.
|
|
|
|
|
|
|
|
|
|
+int eggyylex_destroy(void);
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
// Static variables
|
|
// Static variables
|
|
@@ -1018,6 +1019,15 @@ egg_init_lexer(istream &in, const string &filename) {
|
|
|
initial_token = START_EGG;
|
|
initial_token = START_EGG;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+void
|
|
|
|
|
+egg_cleanup_lexer() {
|
|
|
|
|
+ // Reset the lexer state.
|
|
|
|
|
+ eggyylex_destroy();
|
|
|
|
|
+
|
|
|
|
|
+ input_p = nullptr;
|
|
|
|
|
+ egg_filename.clear();
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
void
|
|
void
|
|
|
egg_start_group_body() {
|
|
egg_start_group_body() {
|
|
|
/* Set the initial state to begin within a group_body context,
|
|
/* Set the initial state to begin within a group_body context,
|