Classes | |
| class | Driver |
| The Driver class brings together all components. More... | |
| class | location |
| Abstract a location. More... | |
| class | Parser |
| A Bison parser. More... | |
| class | position |
| Abstract a position. More... | |
| class | Scanner |
| Scanner is a derived class to add some extra function to the scanner class. More... | |
| class | stack |
| 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. | |
| location & | operator+= (location &res, unsigned int width) |
| Add and assign a location. | |
| std::ostream & | operator<< (std::ostream &ostr, const location &loc) |
| Intercept output stream redirection. | |
| const position & | operator+= (position &res, const int width) |
| Add and assign a position. | |
| const position | operator+ (const position &begin, const int width) |
| Add two position objects. | |
| const position & | operator-= (position &res, const int width) |
| Add and assign a position. | |
| const position | operator- (const position &begin, const int width) |
| Add two position objects. | |
| std::ostream & | operator<< (std::ostream &ostr, const position &pos) |
| Intercept output stream redirection. | |
| const position example::operator+ | ( | const position & | begin, | |
| const int | width | |||
| ) | [inline] |
| const location example::operator+ | ( | const location & | begin, | |
| unsigned int | width | |||
| ) | [inline] |
Add two location objects.
Definition at line 106 of file location.hh.
References example::location::columns().
| const location example::operator+ | ( | const location & | begin, | |
| const location & | end | |||
| ) | [inline] |
Join two location objects to create a location.
Definition at line 98 of file location.hh.
References example::location::end.
| const position& example::operator+= | ( | position & | res, | |
| const int | width | |||
| ) | [inline] |
Add and assign a position.
Definition at line 100 of file position.hh.
References example::position::columns().
| location& example::operator+= | ( | location & | res, | |
| unsigned int | width | |||
| ) | [inline] |
Add and assign a location.
Definition at line 114 of file location.hh.
References example::location::columns().
| const position example::operator- | ( | const position & | begin, | |
| const int | width | |||
| ) | [inline] |
| const position& example::operator-= | ( | position & | res, | |
| const int | width | |||
| ) | [inline] |
| std::ostream& example::operator<< | ( | std::ostream & | ostr, | |
| const position & | pos | |||
| ) | [inline] |
Intercept output stream redirection.
| ostr | the destination output stream | |
| pos | a reference to the position to redirect |
Definition at line 133 of file position.hh.
References example::position::column, example::position::filename, and example::position::line.
| std::ostream& example::operator<< | ( | std::ostream & | ostr, | |
| const location & | loc | |||
| ) | [inline] |
Intercept output stream redirection.
| ostr | the destination output stream | |
| loc | a reference to the location to redirect |
Definition at line 126 of file location.hh.
References example::location::begin, example::position::column, example::location::end, example::position::filename, and example::position::line.
1.5.5