Expression: Negate: drop int support
Closed this issue · 1 comments
daeMOn63 commented
Integer support for the unary Negate operation can probably be dropped, as integers are already signed and can be multiplied by -1 to negate them.
On the parser side, it only accept negating integers right now (parsing "-" <int>
). The "-" sign should probably be part of a parsed integer instead of the negate operation, and the operation could then parse a boolean negation like "!" <bool>