Closed klaufir closed 5 months ago
Given the following input file
// file: test.cmc int main() { return -1; }
Cmc generates the following output
$ cmc test.cmc -o test.c && cat test.c int main () { return- 1; }
And this code doesn't compile, while the original is valid C code.
edit: Wow, reponse under 4 minutes: thats top notch support :) Thanks for looking into it!
Thanks. I think this will just be a matter of improving the parsing of negative numbers.
In the meantime you can use return(-1); (A hack, I know).
return(-1);
Given the following input file
Cmc generates the following output
And this code doesn't compile, while the original is valid C code.
edit: Wow, reponse under 4 minutes: thats top notch support :) Thanks for looking into it!