Use cmp_less instead of cmp_greater in Parser.hpp
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
This commit is contained in:
parent
3a75531664
commit
01abadc1fa
|
@ -30,7 +30,7 @@ namespace Parser {
|
|||
const auto nextAre = [&i, &lexed]<convertible_to<tok::type> Y>(const initializer_list<Y>& nextValues) -> bool {
|
||||
unsigned int j = 1;
|
||||
for (const Y& nextValue: nextValues) {
|
||||
if (!cmp_greater(lexed.size() - i, nextValues.size()) || lexed[i + j].toktype != nextValue) {
|
||||
if (cmp_less(lexed.size() - i, nextValues.size()) || lexed[i + j].toktype != nextValue) {
|
||||
return false;
|
||||
}
|
||||
++j;
|
||||
|
|
Loading…
Reference in New Issue