202608260006

This commit is contained in:
starcells committed 2026-08-26 00:06:08 +08:00
1 parent 47923363a5
commit 3dbe5cb4aa
2 files changed
+4

No files matched your search

+1
View File
@@ -52,6 +52,7 @@ public:
AND,
OR,
NOT,
NEG,
};
std::map<std::string, operator_t> operator_map = {
{"+", operator_t::ADD}, {"-", operator_t::SUB}, {"*", operator_t::MUL},
+3
View File
@@ -50,6 +50,9 @@ r8asm::general_data r8asm::ast::expand_node_to_data(const ast_node &node) {
case operator_t::NOT:
to_return = ~a;
break;
case operator_t::NEG:
to_return = -a;
break;
default:;
break;
}