Hello,
I understand that the program must be compiled using the command:
cc -std=c11 -Wall -Werror -o runml runml.c
But must the translated code produced by the program do the same? Because this would cause issues depending on the ML code written. Such as:
var <- 6
print 7
Since var is not used, Werror would throw an error!
ml-51566.c:14:8: error: unused variable 'var' [-Werror,-Wunused-variable]
double var = 8;
^
1 error generated.
This would not be a fault of the project programmer, but of the test itself. Should this be caught by the compiler, or can we compile using cc/gcc instead of the more intensive error checking.
Thanks.