It's UWAweek 45 (2nd semester, 2nd exam week)

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 the 4 articles in this topic
Showing 4 of 827 articles.
Currently 9 other people reading this forum.


 UWA week 35 (2nd semester, week 6) ↓
SVG not supported

Login to reply

👍?
helpful
7:59pm Mon 26th Aug, ANONYMOUS

Hi, I was wondering if some of the syntax checking can be left for the c compiler to handle. For example, As I understand the requirements, we don't need to check if functions are defined before being called, since the c compiler will check and report the error anyway.


SVG not supported

Login to reply

👍x1
helpful
6:29am Tue 27th Aug, Christopher M.

ANONYMOUS wrote:
> For example, As I understand the requirements, we don't need to check if functions are defined before being called, since the c compiler will check and report the error anyway.
Your understanding is the wrong way around. An ml function *must* be defined before it can be called. The C code generated by your runml program should not have any C syntax errors, so the C compiler should not find or report any errors in the generated C code.


 UWA week 36 (2nd semester, mid-semester break) ↓
SVG not supported

Login to reply

👍?
helpful
5:53pm Thu 5th Sep, ANONYMOUS

When it means checking the syntax, do we have to check for all cases, eg if we have a comment in the middle of a print call print incre#ment(3) + increment(4) TIA.


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

Login to reply

👍?
helpful
8:21am Fri 13th Sep, Joshua N.

ANONYMOUS wrote:
> When it means checking the syntax, do we have to check for all cases, > > eg if we have a comment in the middle of a print call > print incre#ment(3) + increment(4) > > TIA.
No, because we are assuming expressions are valid and don't need to be checked.

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