+enum class BinaryOperatorType {\r
+ Plus, Minus, Multiply, Divide, Modulo, BitwiseAnd, BitwiseOr, BitwiseXor, LessThan, GreaterThan,\r
+ LeftShift, RightShift, LogicalAnd, LogicalOr, Equals, NotEquals, LessThanEquals, GreaterThanEquals, BitwiseAndEquals, BitwiseOrEquals, BitwiseXorEquals,\r
+ PlusEquals, MinusEquals, MultiplyEquals, DivideEquals, ModuloEquals,\r
+ LeftShiftEquals, RightShiftEquals,\r
+ COUNT\r
+};\r
+static std::string UnaryOperatorTypeStrings[] = {\r
+ "+", "-", "++", "--", "++", "--", "!", "~", "*", "&" };\r
+\r
+static std::string BinaryOperatorTypeStrings[] = {\r
+ "+", "-", "*", "/", "%", "&", "|", "^", "<", ">",\r
+ "<<",">>","&&","||","==","!=","<=",">=","&=","|=","^=",\r
+ "+=","-=","*=","/=","%=",\r
+ "<<=",">>=" };\r
+\r
+struct UnaryOperatorExpr {\r
+ UnaryOperatorType type;\r
+ std::shared_ptr<Expr> expr;\r
+};\r
+\r
+struct BinaryOperatorExpr {\r
+ BinaryOperatorType type;\r