blob: ed7a845c4b79c8d56a2bc02c612636e7c07b29c3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
/*
*/
#include "parseerror.hpp"
#include <iostream>
ParseError::Base::~Base() throw()
{
}
ParseError::Generic::Generic(::std::string message):
m_message(message)
{
::std::cout << "Generic(" << message << ")" << ::std::endl;
}
ParseError::BugCheck::BugCheck(::std::string message):
m_message(message)
{
::std::cout << "BugCheck(" << message << ")" << ::std::endl;
}
ParseError::Todo::Todo(::std::string message):
m_message(message)
{
::std::cout << "Todo(" << message << ")" << ::std::endl;
}
ParseError::Todo::~Todo() throw()
{
}
ParseError::BadChar::BadChar(char character):
m_char(character)
{
::std::cout << "BadChar(" << character << ")" << ::std::endl;
}
ParseError::BadChar::~BadChar() throw()
{
}
ParseError::Unexpected::Unexpected(const TokenStream& lex, Token tok):
m_tok(tok)
{
::std::cout << lex.getPosition() << ": Unexpected(" << tok << ")" << ::std::endl;
}
ParseError::Unexpected::Unexpected(const TokenStream& lex, Token tok, Token exp):
m_tok(tok)
{
::std::cout << lex.getPosition() << ": Unexpected(" << tok << ", " << exp << ")" << ::std::endl;
}
ParseError::Unexpected::~Unexpected() throw()
{
}
|