diff --git a/src/headers/lex.hpp b/src/headers/lex.hpp index 306eb38..03767c8 100644 --- a/src/headers/lex.hpp +++ b/src/headers/lex.hpp @@ -7,9 +7,7 @@ #include struct tok { - class LexerException: public Yerbacon::Exception { - using Yerbacon::Exception::Exception; - }; + typedef Yerbacon::Exception LexerException; enum type: const unsigned short { UNEXPECTED = std::numeric_limits::max() + 1, IDENTIFIER, NUMBER, ALPHACHAR, EOF_ = '\0', DEFINE = '=', TAG = '#', DOLLAR_SIGN = '$', DOT = '.', diff --git a/src/headers/parsing/Parser.hpp b/src/headers/parsing/Parser.hpp index a5e2f96..a42a2ff 100644 --- a/src/headers/parsing/Parser.hpp +++ b/src/headers/parsing/Parser.hpp @@ -7,9 +7,7 @@ #include namespace Parser { - class ParsingException: public Yerbacon::Exception { - using Yerbacon::Exception::Exception; - }; + typedef Yerbacon::Exception ParsingException; ParseTree parseVector(const vector& lexed) { ParseTree parseTree; using namespace StandardComponents;