diff --git a/src/headers/parsing/Parser.hpp b/src/headers/parsing/Parser.hpp index 708beb4..a5e2f96 100644 --- a/src/headers/parsing/Parser.hpp +++ b/src/headers/parsing/Parser.hpp @@ -31,7 +31,7 @@ namespace Parser { switch (current.toktype) { case STRING: parseTree << types::String(current.toktext.data()); break; case IDENTIFIER: { - if (current.toktext == "class") { + if (current.toktext == "class" || current.toktext == "structure") { if (next.toktype == IDENTIFIER) { parseTree << Class(next.toktext); ++i; } else throw ParsingException((not (next.toktext.empty() or next.toktype == tok::EOF_)) ? '"' + next.toktext + "\" is not a valid class identifier" : "A class identifier is required", next.line);