const Object TRUE = {
BOOLEAN,
- true
+ { true }
};
const Object FALSE = {
BOOLEAN,
- false
+ { false }
};
struct EnvironmentNode
assert(left.type == INTEGER);
assert(right.type == INTEGER);
- Object result = { BOOLEAN, left.instance.integer == right.instance.integer };
+ Object result = { BOOLEAN, { left.instance.integer == right.instance.integer } };
return result;
}
assert(left.type == INTEGER);
assert(right.type == INTEGER);
- Object result = { BOOLEAN, left.instance.integer != right.instance.integer };
+ Object result = { BOOLEAN, { left.instance.integer != right.instance.integer } };
return result;
}
assert(left.type == INTEGER);
assert(right.type == INTEGER);
- Object result = { BOOLEAN, left.instance.integer > right.instance.integer };
+ Object result = { BOOLEAN, { left.instance.integer > right.instance.integer } };
return result;
}
assert(left.type == INTEGER);
assert(right.type == INTEGER);
- Object result = { BOOLEAN, left.instance.integer < right.instance.integer };
+ Object result = { BOOLEAN, { left.instance.integer < right.instance.integer } };
return result;
}
assert(left.type == INTEGER);
assert(right.type == INTEGER);
- Object result = { BOOLEAN, left.instance.integer >= right.instance.integer };
+ Object result = { BOOLEAN, { left.instance.integer >= right.instance.integer } };
return result;
}
assert(left.type == INTEGER);
assert(right.type == INTEGER);
- Object result = { BOOLEAN, left.instance.integer <= right.instance.integer };
+ Object result = { BOOLEAN, { left.instance.integer <= right.instance.integer } };
return result;
}
assert(left.type == BOOLEAN);
assert(right.type == BOOLEAN);
- Object result = { BOOLEAN, left.instance.boolean && right.instance.boolean };
+ Object result = { BOOLEAN, { left.instance.boolean && right.instance.boolean } };
return result;
}
assert(left.type == BOOLEAN);
assert(right.type == BOOLEAN);
- Object result = { BOOLEAN, left.instance.boolean || right.instance.boolean };
+ Object result = { BOOLEAN, { left.instance.boolean || right.instance.boolean } };
return result;
}