ANONYMOUS wrote:
> once we finished transcribing the ml language into C code in a separate file, I assume we need to call the system function to run shell commands to run the C file right?
>
> the problem with this is that we require a main function for it before it compiles right? also how do we deal with the datatypes considering our ml file only accepts float datatypes, even if lets say the file sample contains a:
>
> function main argc argv
> # some code here
>
> the main function requires a return value to be int, argc to be int, and argv to be string array.
>
> the translation will either be
>
> float main(float argc, float argv) {}
>
> or
>
> void main(float argc, float argv) {}
>
> which is incorrect i assume
I didn't have much time to look at the project carefully. However, main() is also valid in C, without any parameters like
argc and
argv