From cde848ce1eb995170723f6f070b9fcba0dfdb880 Mon Sep 17 00:00:00 2001 From: Adrian Kummerländer Date: Sat, 5 Jan 2013 22:30:35 +0100 Subject: Moved node classes into separate compilation unit; File extension change --- src/parser.h | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) (limited to 'src/parser.h') diff --git a/src/parser.h b/src/parser.h index 12d745a..b943ebe 100644 --- a/src/parser.h +++ b/src/parser.h @@ -1,9 +1,8 @@ -#ifndef PARSER_PARSER_H_ -#define PARSER_PARSER_H_ +#ifndef PARSER_SRC_PARSER_H_ +#define PARSER_SRC_PARSER_H_ #include #include -#include #include "tree.h" @@ -19,18 +18,6 @@ class Parser { Node* buildTree(Tree*, std::string); }; -class parenthese_exception: public std::exception { - virtual const char* what() const throw() { - return "Invalid parenthesized expression - check your input term."; - } -}; - -class operator_exception: public std::exception { - virtual const char* what() const throw() { - return "Unexpected operator placement - check your input term."; - } -}; - } -#endif // PARSER_PARSER_H_ +#endif // PARSER_SRC_PARSER_H_ -- cgit v1.2.3