fixing still
This commit is contained in:
@ -615,6 +615,7 @@ expression:
|
||||
if(getTypeEntry((TableNode*)$2) == integ) {
|
||||
char* temp = temp_var_gen();
|
||||
TableNode* node = CreateEntry(cur,TYPE_PRIMITIVE, integ, temp, NULL);
|
||||
emit_unary_op(E_NEG,node,tn_or_const(NODE,$2));
|
||||
//NOTE ADD ASSIGNMENT EMIT HERE (MIGHT NEED TO PUSH TO STACK)
|
||||
//result of unary operation
|
||||
$$ = node;
|
||||
@ -630,6 +631,7 @@ expression:
|
||||
if(getTypeEntry((TableNode*)$2) == boo) {
|
||||
char* temp = temp_var_gen();
|
||||
TableNode* node = CreateEntry(cur,TYPE_PRIMITIVE, boo, temp, NULL);
|
||||
emit_unary_op(E_NOT,node,tn_or_const(NODE,$2));
|
||||
//NOTE ADD ASSIGNMENT EMIT HERE (MIGHT NEED TO PUSH TO STACK)
|
||||
//result of unary operation
|
||||
$$ = node;
|
||||
|
Reference in New Issue
Block a user