riolet / rix

Rix language combines the power of C language and the convenience of a high level language
GNU General Public License v3.0
729 stars 27 forks source link

Negative operator isn't working #7

Open JoePelz opened 9 years ago

JoePelz commented 9 years ago

All of the following compile to invalid C code.

a = -1
b = -1.0
c = 13 + -5

Specifically,

a = 1
b = 2
c = a + -b

becomes

int a;
a = 13; 
int b;
b = 17; 
Integer_assign((c + (a - b)));

in which Integer_assign is an undefined reference and c is an undeclared identifier

The negative operator should work as it does in C.