|
| 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 8-bit character, returns zero when EOF. More...
|
|
int | winput () |
| Read one wide 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 | unput (int c) |
| Put back one wide character on the input character sequence for matching, invalidating the current match info and text. More...
|
|
void | output (char c) |
| Output one character. More...
|
|
void | woutput (int c) |
| Output one wide 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...
|
|
virtual size_t | LexerInput (char *s, size_t n) |
| Invoked by FlexLexer::Matcher to read input character sequence. More...
|
|
virtual void | LexerOutput (const char *s, size_t n) |
| Invoked by ECHO and FlexLexer::output. More...
|
|
virtual void | LexerError (const char *s) |
| Invoked by reflex-generated yyFlexLexer when an error occurs. 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...
|
|
template<typename I > |
AbstractLexer & | in (const I &input) |
| Reset the matcher and start scanning from the given input character sequence I. More...
|
|
AbstractLexer & | in (const char *b, size_t n) |
| Reset the matcher and start scanning from the given byte 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 copy of the 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 0-terminated pattern match as a char pointer, does not include matched \0s, this is a constant-time operation. More...
|
|
std::string | str () const |
| Returns the pattern match as a string, a copy of text(), may include pattern-matched \0s. More...
|
|
std::wstring | wstr () const |
| Returns the pattern match as a wide string, converted from UTF-8 text(), may include pattern-matched \0s. 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...
|
|
void | lineno (size_t n) |
| Set or change the starting line number of the last match. More...
|
|
size_t | lines () const |
| Returns the number of lines that the match spans. More...
|
|
size_t | lineno_end () const |
| Returns the ending line number of matched text. 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. 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. More...
|
|
size_t | columno_end () const |
| Returns the ending column number of matched text, taking tab spacing into account and counting wide characters as one character each. 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.
- Template Parameters
-