Class for a lexem in a domain specific programming language with the following properties.
More...
#include <programLexer.hpp>
Class for a lexem in a domain specific programming language with the following properties.
- Indentiation is meaningless
- Spaces are only separating tokens and have no other meaning
- Only EOLN comments and only one type
- C strings (single or double quotes with backslash escaping and not crossing end of line)
- A fixed number of lexem types defined as regular expressions is known
Enumerator |
---|
Eof |
|
Token |
|
SQString |
|
DQString |
|
Error |
|
strus::ProgramLexem::ProgramLexem |
( |
Type |
type_ = Error | ) |
|
|
inline |
strus::ProgramLexem::ProgramLexem |
( |
Type |
type_, |
|
|
int |
id_, |
|
|
const std::string & |
value_ |
|
) |
| |
|
inline |
int strus::ProgramLexem::checkKeyword |
( |
int |
nn, |
|
|
|
... |
|
) |
| const |
bool strus::ProgramLexem::end |
( |
| ) |
const |
|
inline |
int strus::ProgramLexem::id |
( |
| ) |
const |
|
inline |
bool strus::ProgramLexem::isEof |
( |
| ) |
const |
|
inline |
bool strus::ProgramLexem::isError |
( |
| ) |
const |
|
inline |
bool strus::ProgramLexem::isString |
( |
| ) |
const |
|
inline |
bool strus::ProgramLexem::isToken |
( |
int |
id_ | ) |
const |
|
inline |
bool strus::ProgramLexem::isToken |
( |
| ) |
const |
|
inline |
strus::ProgramLexem::operator bool |
( |
| ) |
const |
|
inline |
Type strus::ProgramLexem::type |
( |
| ) |
const |
|
inline |
const std::string& strus::ProgramLexem::value |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: