Remove a useless condition in Parser.hpp
This commit is contained in:
parent
fefa7b05c7
commit
8cb72a9baa
|
@ -36,14 +36,12 @@ namespace Parser {
|
|||
parseTree << Class(next.toktext); ++i;
|
||||
} else throw ParsingException((not next.toktext.empty()) ? '"' + next.toktext + "\" is not a valid class identifier" : "A class identifier is required", next.line);
|
||||
} else {
|
||||
if ((lexed.size() - i) > 2) {
|
||||
bool isFinalDefine = nextAre({TAG, DEFINE});
|
||||
if (isFinalDefine || next.toktype == DEFINE) {
|
||||
parseTree << Define(isFinalDefine, current.toktext);
|
||||
i += 1 + isFinalDefine;
|
||||
} else {
|
||||
parseTree << Reference(current.toktext);
|
||||
}
|
||||
bool isFinalDefine = nextAre({TAG, DEFINE});
|
||||
if (isFinalDefine || next.toktype == DEFINE) {
|
||||
parseTree << Define(isFinalDefine, current.toktext);
|
||||
i += 1 + isFinalDefine;
|
||||
} else {
|
||||
parseTree << Reference(current.toktext);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue