|
Nearly CC
An educational compiler skeleton
|
Base type for exceptions indicating a syntax error,. More...
#include "exceptions.h"


Public Member Functions | |
| BaseException (const Location &loc, const std::string &desc) | |
| Constructor. More... | |
| BaseException (const BaseException &other) | |
| Copy constructor. More... | |
| bool | has_location () const |
| Check whether this exception has a valud source Location. More... | |
| const Location & | get_loc () const |
| Get the source Location. More... | |
Base type for exceptions indicating a syntax error,.
| BaseException::BaseException | ( | const Location & | loc, |
| const std::string & | desc | ||
| ) |
Constructor.
| loc | the source Location of the error |
| desc | description of the error |
| BaseException::BaseException | ( | const BaseException & | other | ) |
Copy constructor.
| other | the BaseException object to copy from |
| const Location & BaseException::get_loc | ( | ) | const |
|
inline |