webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Types | Public Member Functions | Public Attributes | List of all members
pp::Token Struct Reference

#include <Token.h>

Public Types

enum  Type {
  LAST = 0, IDENTIFIER = 258, CONST_INT, CONST_FLOAT,
  OP_INC, OP_DEC, OP_LEFT, OP_RIGHT,
  OP_LE, OP_GE, OP_EQ, OP_NE,
  OP_AND, OP_XOR, OP_OR, OP_ADD_ASSIGN,
  OP_SUB_ASSIGN, OP_MUL_ASSIGN, OP_DIV_ASSIGN, OP_MOD_ASSIGN,
  OP_LEFT_ASSIGN, OP_RIGHT_ASSIGN, OP_AND_ASSIGN, OP_XOR_ASSIGN,
  OP_OR_ASSIGN, PP_HASH, PP_NUMBER, PP_OTHER
}
 
enum  Flags { AT_START_OF_LINE = 1 << 0, HAS_LEADING_SPACE = 1 << 1, EXPANSION_DISABLED = 1 << 2 }
 

Public Member Functions

 Token ()
 
void reset ()
 
bool equals (const Token &other) const
 
bool atStartOfLine () const
 
void setAtStartOfLine (bool start)
 
bool hasLeadingSpace () const
 
void setHasLeadingSpace (bool space)
 
bool expansionDisabled () const
 
void setExpansionDisabled (bool disable)
 
bool iValue (int *value) const
 
bool uValue (unsigned int *value) const
 
bool fValue (float *value) const
 

Public Attributes

int type
 
unsigned int flags
 
SourceLocation location
 
std::string text
 

Member Enumeration Documentation

◆ Flags

Enumerator
AT_START_OF_LINE 
HAS_LEADING_SPACE 
EXPANSION_DISABLED 

◆ Type

Enumerator
LAST 
IDENTIFIER 
CONST_INT 
CONST_FLOAT 
OP_INC 
OP_DEC 
OP_LEFT 
OP_RIGHT 
OP_LE 
OP_GE 
OP_EQ 
OP_NE 
OP_AND 
OP_XOR 
OP_OR 
OP_ADD_ASSIGN 
OP_SUB_ASSIGN 
OP_MUL_ASSIGN 
OP_DIV_ASSIGN 
OP_MOD_ASSIGN 
OP_LEFT_ASSIGN 
OP_RIGHT_ASSIGN 
OP_AND_ASSIGN 
OP_XOR_ASSIGN 
OP_OR_ASSIGN 
PP_HASH 
PP_NUMBER 
PP_OTHER 

Constructor & Destructor Documentation

◆ Token()

pp::Token::Token ( )
inline

Member Function Documentation

◆ atStartOfLine()

bool pp::Token::atStartOfLine ( ) const
inline

◆ equals()

bool pp::Token::equals ( const Token other) const

◆ expansionDisabled()

bool pp::Token::expansionDisabled ( ) const
inline

◆ fValue()

bool pp::Token::fValue ( float *  value) const

◆ hasLeadingSpace()

bool pp::Token::hasLeadingSpace ( ) const
inline

◆ iValue()

bool pp::Token::iValue ( int *  value) const

◆ reset()

void pp::Token::reset ( )

◆ setAtStartOfLine()

void pp::Token::setAtStartOfLine ( bool  start)

◆ setExpansionDisabled()

void pp::Token::setExpansionDisabled ( bool  disable)

◆ setHasLeadingSpace()

void pp::Token::setHasLeadingSpace ( bool  space)

◆ uValue()

bool pp::Token::uValue ( unsigned int *  value) const

Member Data Documentation

◆ flags

unsigned int pp::Token::flags

◆ location

SourceLocation pp::Token::location

◆ text

std::string pp::Token::text

◆ type

int pp::Token::type

The documentation for this struct was generated from the following files: