#include <SFlexLexer.h>
Inherits yyFlexLexer.
Inheritance diagram for SFlexLexer:
Public Methods | |
SFlexLexer (std::istream *in) | |
~SFlexLexer () | |
void | errMsg (const char *msg) |
SFlexLexerToken | getToken () |
virtual int | lineno () const |
void | ungetToken () |
bool | parseDouble () |
bool | parseLong () |
void | setErrorCaption (char *cap) |
bool | readIdentifier (const char *ident) |
bool | readToken (const SFlexLexerToken token) |
|
Constructor
|
|
Destructor |
|
Print an error message with the line number, where the error occured, and what the modifier had expected.
|
|
Get the next token in the input-stream
|
|
Get the current line number in the input stream where the last token was read
|
|
Check if the next token can be interpreted as double value
|
|
Check if the next token can be interpreted as integer value
|
|
Get next token and check if it is an IDENTIFIER and if the text of the token matches 'ident'
|
|
Get next token and check if it matches the one you have expected
|
|
Set the text, that will be printed as caption at future errMsg()-calls
|
|
Put the last token back into the input stream; use it if you expected another token and you want to try again; NOTE: calling ungetToken() serveral times will have the same effect as if you called it once, it will only put the current token back ! |