#include <vypIO.h>

Definition at line 97 of file vypIO.h.
Public Member Functions | |
| Error (EError type, std::string file, std::string msg, int lineno=0, std::string category=std::string(), Token token=Token()) | |
| constructor used mostly in lower layers of compiler | |
| Error (EError type, std::string file, std::string msg, Token token, bool internal=false) | |
| constructor used mostly in higher layers of compiler | |
| ~Error () | |
Private Member Functions | |
| Color & | operator= (const Color &) |
Private Attributes | |
| Private * | d |
Friends | |
| std::ostream & | operator<< (std::ostream &, const Error &) |
| print error to stream (no new lines) | |
Classes | |
| struct | Private |
| Error | ( | EError | type, | |
| std::string | file, | |||
| std::string | msg, | |||
| int | lineno = 0, |
|||
| std::string | category = std::string(), |
|||
| Token | token = Token() | |||
| ) |
constructor used mostly in lower layers of compiler
input token causing the error
| type | error type |
| file | input file causing the error |
| msg | error message |
| lineno | line number (0 means not used) |
| category | error category, e.g. lexical, ... |
Definition at line 92 of file vypIO.cc.
References Error::Private::category, Error::d, Error::Private::file, Error::Private::lineno, Error::Private::msg, Error::Private::token, and Error::Private::type.
constructor used mostly in higher layers of compiler
true for internal (compiler) error/warning
| type | error type |
| file | input file causing the error |
| msg | error message, |
| token | input token causing the error |
Definition at line 102 of file vypIO.cc.
References Error::Private::category, Error::d, Error::Private::file, Token::lineno, Error::Private::lineno, Error::Private::msg, Token::text, Error::Private::token, and Error::Private::type.
| std::ostream& operator<< | ( | std::ostream & | , | |
| const Error & | ||||
| ) | [friend] |
Definition at line 118 of file vypIO.h.
Referenced by Error::Error(), StreamDecorator::operator<<(), and Error::~Error().
1.5.4