bit-hack/c-compiler

Support unary operators

Closed this issue · 1 comments

support the following unary operators:

*x;  // dereference
&x;  // address of
-x;  // negative

These were added and some tests added too.
The address-of and dereference operators really show the need for a type system or you could get into trouble.