|
| FlexLexer (const Input &input, std::ostream *os) |
| Construct Flex-compatible lexer to read from a std::istream (and echo the text matches to a std::ostream). More...
|
|
const char * | YYText () const |
| The matched text. More...
|
|
int | YYLeng () const |
| The matched text length. More...
|
|
int | input () |
| Read one character, returns zero when EOF. More...
|
|
void | unput (char c) |
| Put back one character on the input character sequence for matching, invalidating the current match info and text. More...
|
|
void | output (char c) |
| Output one character. More...
|
|
virtual void | switch_streams (const Input &input=Input(), std::ostream *os=NULL) |
| Switch input and output streams. More...
|
|
virtual int | yywrap () |
| Default yywrap operation at EOF: do not wrap input. More...
|
|
virtual int | yylex ()=0 |
| Pure virtual lexer (implemented by a reflex-generated yyFlexLexer). More...
|
|
| AbstractLexer (const Input &input, std::ostream &os) |
| Construct abstract lexer to scan an input character sequence and echo the text matches to output. More...
|
|
virtual | ~AbstractLexer () |
| Delete lexer and its current matcher with its associated input. More...
|
|
virtual void | set_debug (int flag) |
| Set debug flag value. More...
|
|
virtual int | debug () const |
| Get debug flag value. More...
|
|
void | perf_report () |
| Dummy performance reporter, to prevent link errors when reflex option -p is omitted. More...
|
|
virtual int | wrap () |
| The default wrap operation at EOF: do not wrap input. More...
|
|
AbstractLexer & | in (const Input &input) |
| Reset the matcher and start scanning from the given input character sequence. More...
|
|
Input & | in () |
| Returns the current input character sequence that is being scanned. More...
|
|
Input & | stdinit () |
| Returns the current input character sequence that is being scanned, if none assign stdin. More...
|
|
Input & | nostdinit () |
| Returns the current input character sequence that is being scanned, if none assign std::cin. More...
|
|
AbstractLexer & | buffer (char *base, size_t size) |
| Reset the matcher and start scanning the given buffer containing 0-terminated character data (data may be modified). More...
|
|
AbstractLexer & | out (std::ostream &os) |
| Set the current output to the given output stream to echo text matches to. More...
|
|
std::ostream & | out () const |
| Returns the current output stream used to echo text matches to. More...
|
|
std::ostream *& | os () |
| Returns pointer to the current output stream used to echo text matches to. More...
|
|
bool | has_matcher () const |
| Returns true if a matcher was assigned to this lexer for scanning. More...
|
|
AbstractLexer & | matcher (Matcher *matcher) |
| Set the matcher (and its current state) for scanning. More...
|
|
Matcher & | matcher () const |
| Returns a reference to the current matcher. More...
|
|
Matcher * | ptr_matcher () const |
| Returns a pointer to the current matcher, NULL if none was set. More...
|
|
virtual Matcher * | new_matcher (const Input &input=Input(), const char *opt=NULL) |
| Returns a new matcher for the given input. More...
|
|
void | del_matcher (Matcher *matcher) |
| Delete a matcher. More...
|
|
void | push_matcher (Matcher *matcher) |
| Push the current matcher on the stack and use the given matcher for scanning. More...
|
|
bool | pop_matcher () |
| Pop matcher from the stack and continue scanning where it left off, delete the current matcher. More...
|
|
void | echo () const |
| Echo the matched text to the current output. More...
|
|
const char * | text () const |
| Returns string with the text matched. More...
|
|
std::string | str () const |
| Returns string with a copy of the text matched. More...
|
|
std::wstring | wstr () const |
| Returns wide string with a copy of the text matched. More...
|
|
int | chr () const |
| Returns the first 8-bit character of the text matched. More...
|
|
int | wchr () const |
| Returns the first wide character of the text matched. More...
|
|
size_t | size () const |
| Returns the matched text size in number of bytes. More...
|
|
size_t | wsize () const |
| Returns the matched text size in number of (wide) characters. More...
|
|
size_t | lineno () const |
| Returns the line number of matched text. More...
|
|
size_t | lines () const |
| Returns the number of lines that the match spans. More...
|
|
size_t | columno () const |
| Returns the starting column number of matched text, taking tab spacing into account and counting wide characters as one character each (unless compiled with WITH_BYTE_COLUMNO). More...
|
|
size_t | columns () const |
| Returns the number of columns of the last line (or the single line of matched text) in the matched text, taking tab spacing into account and counting wide characters as one character each (unless compiled with WITH_BYTE_COLUMNO). More...
|
|
AbstractLexer & | start (int state) |
| Transition to the given start condition state. More...
|
|
int | start () const |
| Returns the current start condition state. More...
|
|
void | push_state (int state) |
| Push the current start condition state on the stack and transition to the given start condition state. More...
|
|
void | pop_state () |
| Pop the stack start condition state and transition to that state. More...
|
|
int | top_state () const |
| Returns the stack top start condition state or 0 (INITIAL) if the stack is empty. More...
|
|
bool | states_empty () const |
| Returns true if the condition state stack is empty. More...
|
|
virtual void | lexer_error (const char *message=NULL) |
| Lexer exceptions. More...
|
|
template<typename M>
class reflex::FlexLexer< M >
Flex-compatible FlexLexer abstract base class template derived from reflex::AbstractMatcher for the reflex-generated yyFlexLexer scanner class.
More info TODO
- Template Parameters
-