It's UWAweek 42 (2nd semester, week 12)

help2002

This forum is provided to promote discussion amongst students enrolled in CITS2002 Systems Programming.
Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message.
Displaying selected article
Showing 1 of 738 articles.
Currently 73 other people reading this forum.


 UWA week 37 (2nd semester, week 7) ↓
SVG not supported

Login to reply

👍?
helpful
1:10pm Thu 12th Sep, Samay G.

Q1) I saw the thread that you shared but it means that we will have to store the expression, evaluate it and then handle the value. something like - double temp = <entire expression>; if (temp==int(temp)){....} Q2) So if i understand correctly, the expectation is that runml.c should compile the translated code using "cc -std=c11 -Wall -Werror -o runml runml.c"? Q3) One related question, ml can have code like this - x <- 3 function add a return a+5 add(x) function multiply b return b*5 multiply(x) print x I can keep first line outside main function (global variable), and then parse entire ml code find all functions and then move them to the top (outside main) in translated code. any suggestions, or can we assume that all the functions in ml language will be declared first (ahead of other expressions/statements)?

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  8:08AM Aug 25 2024
Privacy policy