From cc0964f4e51200ead1f87dcec926f884c5c0033c Mon Sep 17 00:00:00 2001 From: Vern Paxson Date: Mon, 20 Mar 1995 14:02:36 +0000 Subject: [PATCH] debug(), setdebug(), lineno() --- FlexLexer.h | 6 ++++++ 1 file changed, 6 insertions(+) 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" }; -- 2.50.0