Question 14: Translating calcish into C [6]

In assignment 3 we dealt with the problem of translating calcish into C.

(i) Explain your solution for the problem of translating calcish statements that begin and end with brackets to C statements that are delimited with semi-colons.

(ii) Explain your solution for the problem of getting the #include's to appear before the function definitions, the int main() { to appear after them, and the final closing bracket at the end of the translation.