flexlexer.h File Reference

updated Fri Dec 9 2016
 
Classes | Namespaces | Macros
flexlexer.h File Reference

RE/flex Flex-compatible FlexLexer base class and Lex/Flex-compatible macros. More...

#include "abslexer.h"
Include dependency graph for flexlexer.h:

Classes

class  reflex::FlexLexer< M >
 Flex-compatible FlexLexer abstract base class template derived from reflex::AbstractMatcher for the reflex-generated yyFlexLexer scanner class. More...
 
class  reflex::FlexLexer< M >::Matcher
 Extends reflex::AbstractLexer::Matcher for Flex-compatibility. More...
 

Namespaces

 reflex
 

Macros

#define YY_USER_INIT
 Flex-compatible user-definable macro. More...
 
#define YY_USER_ACTION
 Flex-compatible user-definable macro. More...
 
#define YY_BREAK   break;
 Flex-compatible user-definable macro. More...
 
#define YY_SCANNER   (*this)
 Flex and Bison-compatible option bison uses global YY_SCANNER scanner object, otherwise *this. More...
 
#define yy_buffer_state   reflex::FlexLexer::Matcher
 Flex-compatible macro defining the type of the scanner buffer. More...
 
#define YY_BUFFER_STATE   yy_buffer_state*
 Flex-compatible macro defining a pointer to the type of the scanner buffer. More...
 
#define YY_BUF_SIZE   (16384)
 Flex-compatible macro. More...
 
#define yy_state_type   int
 Flex-compatible macro defining the type of a state variable. More...
 
#define yy_size_t   size_t
 Flex-compatible macro. More...
 
#define ECHO   YY_SCANNER.LexerOutput(YYText(), YYLeng())
 Flex-compatible macro defining ECHO action to output the content of yytext. More...
 
#define BEGIN   YY_SCANNER.start_ =
 Flex-compatible macro defining BEGIN action to set a start condition. More...
 
#define YYSTATE   YY_SCANNER.start()
 Flex-compatible macro defining the current start condition. More...
 
#define YY_START   YY_SCANNER.start()
 Flex-compatible macro defining the current start condition. More...
 
#define yy_current_state   YY_SCANNER.start()
 Flex-compatible macro defining the current start condition. More...
 
#define YY_CURRENT_BUFFER   YY_SCANNER.matcher()
 Flex-compatible macro defining the current matcher buffer. More...
 
#define YY_FLUSH_BUFFER   YY_SCANNER.matcher().flush()
 Flex-compatible macro defining the buffer flush action. More...
 
#define yytext   const_cast<char*>(YY_SCANNER.YYText())
 Flex-compatible macro defining the matched text. More...
 
#define yyleng   static_cast<int>(YY_SCANNER.YYLeng())
 Flex-compatible macro defining the matched text length. More...
 
#define yylineno   static_cast<int>(YY_SCANNER.matcher().lineno())
 Flex-compatible macro defining the line number of the matched text. More...
 
#define yy_act   YY_SCANNER.matcher().accept()
 Flex-compatible macro defining the matched action index. More...
 
#define yyin   YY_SCANNER.matcher().in
 Flex-compatible macro defining the current input (reflex::Input can be a stream, file, or string). More...
 
#define yyout   YY_SCANNER.os_
 Flex-compatible macro defining the current output stream. More...
 
#define YY_AT_BOL()    YY_SCANNER.matcher().at_bol()
 Flex-compatible macro defining a at-begin-of-line check. More...
 
#define yy_set_bol(b)    YY_SCANNER.matcher().set_bol(b)
 Flex-compatible macro defining a begin-of-line forced set. More...
 
#define yy_set_interactive(b)   YY_SCANNER.matcher().buffer((b) ? 1 : 0)
 Flex-compatible macro defining interactive mode on/off. More...
 
#define yyterminate()    return 0
 Flex-compatible macro defining the terminating action. More...
 
#define yy_flex_debug   YY_SCANNER.debug_;
 Flex-compatible macro defining the debug flag;. More...
 
#define yyscanner   this
 Flex-compatible macro defining reentrant use of yyscanner. More...
 
#define yyget_text(s)    static_cast<FlexLexer*>(s)->YYText()
 Flex-compatible macro defining the text accessor for reentrant scanner. More...
 
#define yyget_leng(s)    static_cast<FlexLexer*>(s)->YYLeng()
 Flex-compatible macro defining the leng accessor for reentrant scanner. More...
 
#define yyget_lineno(s)    static_cast<FlexLexer*>(s)->lineno()
 Flex-compatible macro defining the lineno accessor for reentrant scanner. More...
 
#define yyget_in(s)    static_cast<FlexLexer*>(s)->matcher().in
 Flex-compatible macro defining the in accessor for reentrant scanner. More...
 
#define yyget_out(s)    static_cast<FlexLexer*>(s)->os_
 Flex-compatible macro defining the out accessor for reentrant scanner. More...
 
#define yyset_in(i, s)    static_cast<FlexLexer*>(s)->matcher().input(i)
 Flex-compatible macro defining the in accessor for reentrant scanner. More...
 
#define yyset_out(o, s)    (static_cast<FlexLexer*>(s)->os_ = o)
 Flex-compatible macro defining the out accessor for reentrant scanner. More...
 
#define YY_EXTRA_TYPE   void*
 Flex-compatible macro defining the extra type for reentrant scanner. More...
 
#define yyget_extra(s)    static_cast<FlexLexer*>(s)->yyextra
 Flex-compatible macro defining yyget_extra() for reentrant scanner. More...
 
#define yyset_extra(x, s)    (static_cast<FlexLexer*>(s)->yyextra = x)
 Flex-compatible macro defining yyset_extra() for reentrant scanner. More...
 

Detailed Description

RE/flex Flex-compatible FlexLexer base class and Lex/Flex-compatible macros.

Author
Robert van Engelen - engel.nosp@m.en@g.nosp@m.enivi.nosp@m.a.co.nosp@m.m

Macro Definition Documentation

#define BEGIN   YY_SCANNER.start_ =

Flex-compatible macro defining BEGIN action to set a start condition.

#define ECHO   YY_SCANNER.LexerOutput(YYText(), YYLeng())

Flex-compatible macro defining ECHO action to output the content of yytext.

#define yy_act   YY_SCANNER.matcher().accept()

Flex-compatible macro defining the matched action index.

#define YY_AT_BOL ( )    YY_SCANNER.matcher().at_bol()

Flex-compatible macro defining a at-begin-of-line check.

#define YY_BREAK   break;

Flex-compatible user-definable macro.

#define YY_BUF_SIZE   (16384)

Flex-compatible macro.

#define yy_buffer_state   reflex::FlexLexer::Matcher

Flex-compatible macro defining the type of the scanner buffer.

#define YY_BUFFER_STATE   yy_buffer_state*

Flex-compatible macro defining a pointer to the type of the scanner buffer.

#define YY_CURRENT_BUFFER   YY_SCANNER.matcher()

Flex-compatible macro defining the current matcher buffer.

#define yy_current_state   YY_SCANNER.start()

Flex-compatible macro defining the current start condition.

#define YY_EXTRA_TYPE   void*

Flex-compatible macro defining the extra type for reentrant scanner.

#define yy_flex_debug   YY_SCANNER.debug_;

Flex-compatible macro defining the debug flag;.

#define YY_FLUSH_BUFFER   YY_SCANNER.matcher().flush()

Flex-compatible macro defining the buffer flush action.

#define YY_SCANNER   (*this)

Flex and Bison-compatible option bison uses global YY_SCANNER scanner object, otherwise *this.

#define yy_set_bol (   b)    YY_SCANNER.matcher().set_bol(b)

Flex-compatible macro defining a begin-of-line forced set.

#define yy_set_interactive (   b)    YY_SCANNER.matcher().buffer((b) ? 1 : 0)

Flex-compatible macro defining interactive mode on/off.

#define yy_size_t   size_t

Flex-compatible macro.

#define YY_START   YY_SCANNER.start()

Flex-compatible macro defining the current start condition.

#define yy_state_type   int

Flex-compatible macro defining the type of a state variable.

#define YY_USER_ACTION

Flex-compatible user-definable macro.

#define YY_USER_INIT

Flex-compatible user-definable macro.

#define yyget_extra (   s)    static_cast<FlexLexer*>(s)->yyextra

Flex-compatible macro defining yyget_extra() for reentrant scanner.

#define yyget_in (   s)    static_cast<FlexLexer*>(s)->matcher().in

Flex-compatible macro defining the in accessor for reentrant scanner.

#define yyget_leng (   s)    static_cast<FlexLexer*>(s)->YYLeng()

Flex-compatible macro defining the leng accessor for reentrant scanner.

#define yyget_lineno (   s)    static_cast<FlexLexer*>(s)->lineno()

Flex-compatible macro defining the lineno accessor for reentrant scanner.

#define yyget_out (   s)    static_cast<FlexLexer*>(s)->os_

Flex-compatible macro defining the out accessor for reentrant scanner.

#define yyget_text (   s)    static_cast<FlexLexer*>(s)->YYText()

Flex-compatible macro defining the text accessor for reentrant scanner.

#define yyin   YY_SCANNER.matcher().in

Flex-compatible macro defining the current input (reflex::Input can be a stream, file, or string).

#define yyleng   static_cast<int>(YY_SCANNER.YYLeng())

Flex-compatible macro defining the matched text length.

#define yylineno   static_cast<int>(YY_SCANNER.matcher().lineno())

Flex-compatible macro defining the line number of the matched text.

#define yyout   YY_SCANNER.os_

Flex-compatible macro defining the current output stream.

#define yyscanner   this

Flex-compatible macro defining reentrant use of yyscanner.

#define yyset_extra (   x,
 
)    (static_cast<FlexLexer*>(s)->yyextra = x)

Flex-compatible macro defining yyset_extra() for reentrant scanner.

#define yyset_in (   i,
 
)    static_cast<FlexLexer*>(s)->matcher().input(i)

Flex-compatible macro defining the in accessor for reentrant scanner.

#define yyset_out (   o,
 
)    (static_cast<FlexLexer*>(s)->os_ = o)

Flex-compatible macro defining the out accessor for reentrant scanner.

#define YYSTATE   YY_SCANNER.start()

Flex-compatible macro defining the current start condition.

#define yyterminate ( )    return 0

Flex-compatible macro defining the terminating action.

#define yytext   const_cast<char*>(YY_SCANNER.YYText())

Flex-compatible macro defining the matched text.