Parser.hpp: Put the condition for definitions on one line

Signed-off-by: Username404-59 <w.iron.zombie@gmail.com>
This commit is contained in:
Username404-59 2024-12-31 21:50:21 +01:00
parent dbb08a5299
commit be7b309790
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 1 additions and 6 deletions

View File

@ -142,12 +142,7 @@ namespace Parser {
const auto end = find_if(beginning, lexed.end(), [&current](const tok& it){
return it.toktype == SEMICOLON || it.line != current.line;
});
if (isFinalDefine) {
parseTree << Define<true>(current.toktext, parse(beginning, end));
} else {
parseTree << Define<false>(current.toktext, parse(beginning, end));
}
parseTree << isFinalDefine ? Define<true>(current.toktext, parse(beginning, end)) : Define<false>(current.toktext, parse(beginning, end));
i += 1 + isFinalDefine + distance(beginning, end);
} else {
const bool method = nextAre({DOT, IDENTIFIER, LPAR});