lab5: add assembler and dynamic pipeline system emulator
This commit is contained in:
+3
-2
@@ -24,7 +24,8 @@ public:
|
||||
SUB,
|
||||
MUL,
|
||||
DIV,
|
||||
POW
|
||||
POW,
|
||||
NOP // not an operator
|
||||
};
|
||||
|
||||
union TokenValue {
|
||||
@@ -358,7 +359,7 @@ public:
|
||||
// if value, left and right hands should be null
|
||||
|
||||
explicit TreeNode(void)
|
||||
: l(nullptr), r(nullptr), o()
|
||||
: l(nullptr), r(nullptr), o(Token::NOP)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user