yy Namespace Reference

Common namespace for the generated lexer and parser. More...

Classes

class  lexer
 A lexical scanner for the input file format. More...
class  location
 Abstract a location. More...
class  parser
 A Bison parser. More...
class  position
 Abstract a position. More...
class  stack
 Generated class used by yy::parser. More...
class  slice
 Present a slice of the top of a stack. More...

Functions

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

Detailed Description

Common namespace for the generated lexer and parser.

The elemnts inside this namespace have been automatically generated from lexer.lex or parser.yy, of from some skeleton files that come with the tools using for this code generation.


Function Documentation

std::ostream& yy::operator<< ( std::ostream &  ostr,
const position &  pos 
) [inline]

Intercept output stream redirection.

Parameters:
ostr the destination output stream
pos a reference to the position to redirect

Definition at line 152 of file position.hh.

References yy::position::column, yy::position::filename, and yy::position::line.

std::ostream& yy::operator<< ( std::ostream &  ostr,
const location &  loc 
) [inline]

Intercept output stream redirection.

Parameters:
ostr the destination output stream
loc a reference to the location to redirect

Avoid duplicate information.

Definition at line 147 of file location.hh.

References yy::location::begin, yy::position::column, yy::location::end, yy::position::filename, and yy::position::line.


Generated on Fri Aug 21 08:15:08 2009 for mqn2mps by  doxygen 1.6.0