diff options
author | Vern Paxson <vern@ee.lbl.gov> | 1995-03-20 14:02:36 +0000 |
---|---|---|
committer | Vern Paxson <vern@ee.lbl.gov> | 1995-03-20 14:02:36 +0000 |
commit | cc0964f4e51200ead1f87dcec926f884c5c0033c (patch) | |
tree | c9c6bb7efb93d45817b14d09fd04d28b8e017b44 /FlexLexer.h | |
parent | e3c29e6b014f6b1435bc73d18a85fb6c2a2e9f66 (diff) |
debug(), setdebug(), lineno()
Diffstat (limited to 'FlexLexer.h')
-rw-r--r-- | FlexLexer.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/FlexLexer.h b/FlexLexer.h index 5b34500..04dbf18 100644 --- a/FlexLexer.h +++ b/FlexLexer.h @@ -78,9 +78,15 @@ public: virtual void switch_streams( istream* new_in = 0, ostream* new_out = 0 ) = 0; + int lineno() const { return yylineno; } + + int debug() const { return yy_flex_debug; } + void set_debug( int flag ) { yy_flex_debug = flag; } + protected: char* yytext; int yyleng; + int yylineno; // only maintained if you use %option yylineno int yy_flex_debug; // only has effect with -d or "%option debug" }; |