Bridge++  Ver. 2.0.2
yy Namespace Reference

Classes

class  location
 Abstract a location. More...
 
class  parser
 A Bison parser. More...
 
class  position
 Abstract a position. More...
 
class  slice
 Present a slice of the top of a stack. More...
 
class  stack
 

Functions

const location operator+ (const location &begin, const location &end)
 Join two location objects to create a location. More...
 
const location operator+ (const location &begin, unsigned int width)
 Add two location objects. More...
 
locationoperator+= (location &res, unsigned int width)
 Add and assign a location. More...
 
bool operator== (const location &loc1, const location &loc2)
 Compare two location objects. More...
 
bool operator!= (const location &loc1, const location &loc2)
 Compare two location objects. More...
 
template<typename YYChar >
std::basic_ostream< YYChar > & operator<< (std::basic_ostream< YYChar > &ostr, const location &loc)
 Intercept output stream redirection. More...
 
positionoperator+= (position &res, const int width)
 Add and assign a position. More...
 
const position operator+ (const position &begin, const int width)
 Add two position objects. More...
 
positionoperator-= (position &res, const int width)
 Add and assign a position. More...
 
const position operator- (const position &begin, const int width)
 Add two position objects. More...
 
bool operator== (const position &pos1, const position &pos2)
 Compare two position objects. More...
 
bool operator!= (const position &pos1, const position &pos2)
 Compare two position objects. More...
 
template<typename YYChar >
std::basic_ostream< YYChar > & operator<< (std::basic_ostream< YYChar > &ostr, const position &pos)
 Intercept output stream redirection. More...
 

Function Documentation

◆ operator!=() [1/2]

bool yy::operator!= ( const location loc1,
const location loc2 
)
inline

Compare two location objects.

Definition at line 149 of file location.hh.

◆ operator!=() [2/2]

bool yy::operator!= ( const position pos1,
const position pos2 
)
inline

Compare two position objects.

Definition at line 151 of file position.hh.

◆ operator+() [1/3]

const location yy::operator+ ( const location begin,
const location end 
)
inline

Join two location objects to create a location.

Definition at line 118 of file location.hh.

◆ operator+() [2/3]

const location yy::operator+ ( const location begin,
unsigned int  width 
)
inline

Add two location objects.

Definition at line 126 of file location.hh.

◆ operator+() [3/3]

const position yy::operator+ ( const position begin,
const int  width 
)
inline

Add two position objects.

Definition at line 118 of file position.hh.

◆ operator+=() [1/2]

location& yy::operator+= ( location res,
unsigned int  width 
)
inline

Add and assign a location.

Definition at line 134 of file location.hh.

◆ operator+=() [2/2]

position& yy::operator+= ( position res,
const int  width 
)
inline

Add and assign a position.

Definition at line 110 of file position.hh.

◆ operator-()

const position yy::operator- ( const position begin,
const int  width 
)
inline

Add two position objects.

Definition at line 133 of file position.hh.

◆ operator-=()

position& yy::operator-= ( position res,
const int  width 
)
inline

Add and assign a position.

Definition at line 126 of file position.hh.

◆ operator<<() [1/2]

template<typename YYChar >
std::basic_ostream<YYChar>& yy::operator<< ( std::basic_ostream< YYChar > &  ostr,
const location loc 
)
inline

Intercept output stream redirection.

Parameters
ostrthe destination output stream
loca reference to the location to redirect

Avoid duplicate information.

Definition at line 162 of file location.hh.

◆ operator<<() [2/2]

template<typename YYChar >
std::basic_ostream<YYChar>& yy::operator<< ( std::basic_ostream< YYChar > &  ostr,
const position pos 
)
inline

Intercept output stream redirection.

Parameters
ostrthe destination output stream
posa reference to the position to redirect

Definition at line 162 of file position.hh.

◆ operator==() [1/2]

bool yy::operator== ( const location loc1,
const location loc2 
)
inline

Compare two location objects.

Definition at line 142 of file location.hh.

◆ operator==() [2/2]

bool yy::operator== ( const position pos1,
const position pos2 
)
inline

Compare two position objects.

Definition at line 140 of file position.hh.