diff --git a/src/headers/parsing/Parser.hpp b/src/headers/parsing/Parser.hpp index 1339ecc..d7fb1f8 100644 --- a/src/headers/parsing/Parser.hpp +++ b/src/headers/parsing/Parser.hpp @@ -142,12 +142,7 @@ namespace Parser { const auto end = find_if(beginning, lexed.end(), [¤t](const tok& it){ return it.toktype == SEMICOLON || it.line != current.line; }); - if (isFinalDefine) { - parseTree << Define(current.toktext, parse(beginning, end)); - } else { - parseTree << Define(current.toktext, parse(beginning, end)); - } - + parseTree << isFinalDefine ? Define(current.toktext, parse(beginning, end)) : Define(current.toktext, parse(beginning, end)); i += 1 + isFinalDefine + distance(beginning, end); } else { const bool method = nextAre({DOT, IDENTIFIER, LPAR});