PUMA Library Reference Manual
Loading...
Searching...
No Matches
Puma::LanguageID Class Reference

#include <Puma/LanguageID.h>

Description

A language ID is a unique identifier for a language.

It is used to group tokens, like identifiers, keywords, preprocessor directives, comments, and so on.

Public Member Functions

 LanguageID ()
 Construct an empty object. More...
 
 LanguageID (const char *id)
 Constructor. More...
 
 operator const char * () const
 Conversion operator. More...
 
bool operator== (const LanguageID &id) const
 Compare with another language identifier. More...
 

Constructor & Destructor Documentation

◆ LanguageID() [1/2]

Puma::LanguageID::LanguageID ( )
inline

Construct an empty object.

◆ LanguageID() [2/2]

Puma::LanguageID::LanguageID ( const char *  id)
inline

Constructor.

Parameters
idThe identifier.

Member Function Documentation

◆ operator const char *()

Puma::LanguageID::operator const char * ( ) const
inline

Conversion operator.

Returns
The identifier string.

◆ operator==()

bool Puma::LanguageID::operator== ( const LanguageID id) const
inline

Compare with another language identifier.

Parameters
idThe other language identifier.
Returns
True if it is the same language identifier object.