summaryrefslogtreecommitdiff
path: root/src/parse/parseerror.cpp
diff options
context:
space:
mode:
authorJohn Hodge (sonata) <tpg@mutabah.net>2014-12-23 12:06:25 +0800
committerJohn Hodge (sonata) <tpg@mutabah.net>2014-12-23 12:06:25 +0800
commit04dd6b05f945c944c13431baa509ec628ac26f41 (patch)
tree5a3d67f4f875481057118a3c553abf5ae998a548 /src/parse/parseerror.cpp
parent89771222961d699f5ca6f586033b5fb915ced431 (diff)
downloadmrust-04dd6b05f945c944c13431baa509ec628ac26f41.tar.gz
Move source files to src/ folder
Diffstat (limited to 'src/parse/parseerror.cpp')
-rw-r--r--src/parse/parseerror.cpp51
1 files changed, 51 insertions, 0 deletions
diff --git a/src/parse/parseerror.cpp b/src/parse/parseerror.cpp
new file mode 100644
index 00000000..37beb863
--- /dev/null
+++ b/src/parse/parseerror.cpp
@@ -0,0 +1,51 @@
+/*
+ */
+#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(Token tok):
+ m_tok(tok)
+{
+ ::std::cout << "Unexpected(" << tok << ")" << ::std::endl;
+}
+ParseError::Unexpected::Unexpected(Token tok, Token exp)
+{
+ ::std::cout << "Unexpected(" << tok << ", " << exp << ")" << ::std::endl;
+}
+ParseError::Unexpected::~Unexpected() throw()
+{
+}