strusBase  0.17
Public Types | Public Member Functions | List of all members
strus::ProgramLexem Class Reference

Class for a lexem in a domain specific programming language with the following properties. More...

#include <programLexer.hpp>

Public Types

enum  Type {
  Eof, Token, SQString, DQString,
  Error
}
 

Public Member Functions

Type type () const
 
int id () const
 
const std::string & value () const
 
 ProgramLexem (Type type_=Error)
 
 ProgramLexem (const ProgramLexem &o)
 
 ProgramLexem (Type type_, int id_, const std::string &value_)
 
 operator bool () const
 
bool end () const
 
bool isToken (int id_) const
 
bool isToken () const
 
bool isString () const
 
bool isError () const
 
bool isEof () const
 
int checkKeyword (int nn,...) const
 

Detailed Description

Class for a lexem in a domain specific programming language with the following properties.

Member Enumeration Documentation

Enumerator
Eof 
Token 
SQString 
DQString 
Error 

Constructor & Destructor Documentation

strus::ProgramLexem::ProgramLexem ( Type  type_ = Error)
inline
strus::ProgramLexem::ProgramLexem ( const ProgramLexem o)
inline
strus::ProgramLexem::ProgramLexem ( Type  type_,
int  id_,
const std::string &  value_ 
)
inline

Member Function Documentation

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: