diff options
author | Vern Paxson <vern@ee.lbl.gov> | 1993-12-15 10:23:53 +0000 |
---|---|---|
committer | Vern Paxson <vern@ee.lbl.gov> | 1993-12-15 10:23:53 +0000 |
commit | 28f45f1f486fda4323d6f6e6aea3194e949fc227 (patch) | |
tree | b605c9c430dde96a8054e1436c076502d214d139 /FlexLexer.h | |
parent | 00627242d65e221c10a59e70630da3c804df9210 (diff) |
start stack, extern "C++" moved
Diffstat (limited to 'FlexLexer.h')
-rw-r--r-- | FlexLexer.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/FlexLexer.h b/FlexLexer.h index 1d5a66d..c90f30d 100644 --- a/FlexLexer.h +++ b/FlexLexer.h @@ -35,10 +35,10 @@ // If you want to create multiple lexer classes, you use the -P flag // to rename each yyFlexLexer to some other xxFlexLexer. -extern "C++" { - #include <iostream.h> +extern "C++" { + struct yy_buffer_state; typedef int yy_state_type; @@ -82,6 +82,9 @@ public: yy_more_flag = 0; yy_more_len = 0; + yy_start_stack_ptr = yy_start_stack_depth = 0; + yy_start_stack = 0; + yy_current_buffer = 0; #ifdef YY_USES_REJECT @@ -114,6 +117,13 @@ protected: void yy_load_buffer_state(); void yy_init_buffer( struct yy_buffer_state* b, istream* s ); + int yy_start_stack_ptr; + int yy_start_stack_depth; + int* yy_start_stack; + + void yy_push_state( int new_state ); + int yy_pop_state(); + yy_state_type yy_get_previous_state(); yy_state_type yy_try_NUL_trans( yy_state_type current_state ); int yy_get_next_buffer(); |