1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:27:35 +00:00

LibCpp: Parse Bitwise & Logical Or & And operators

This commit is contained in:
Itamar 2021-04-02 10:28:17 +03:00 committed by Andreas Kling
parent 8962581c9c
commit 575d6a8ee1
3 changed files with 27 additions and 2 deletions

View file

@ -209,6 +209,12 @@ void BinaryExpression::dump(size_t indent) const
case BinaryOp::NotEqual:
op_string = "!=";
break;
case BinaryOp::LogicalOr:
op_string = "||";
break;
case BinaryOp::LogicalAnd:
op_string = "&&";
break;
}
m_lhs->dump(indent + 1);
@ -319,6 +325,9 @@ void UnaryExpression::dump(size_t indent) const
case UnaryOp::PlusPlus:
op_string = "++";
break;
case UnaryOp::Address:
op_string = "&";
break;
default:
op_string = "<invalid>";
}