It's UWAweek 47

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 2 articles in this topic
Showing 2 of 828 articles.
Currently 97 other people reading this forum.


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

Login to reply

👍?
helpful
3:43pm Tue 27th Aug, ANONYMOUS

The project description states that: All syntax errors detected in invalid ml programs must be reported via stderr on a line commencing with the '!' character. Your runml program must be able to detect all invalid ml programs - EXCEPT that your program will not be tested with any invalid expressions, so you do not need to validate the syntax of expressions. Does this mean that you do not need to validate any identifiers as an expression could be an identifier from the syntax outline posted: expression: term [ ("+" | "-") expression ] term: factor [ ("*" | "/") term ] factor: realconstant | identifier | functioncall | "(" expression ")"


SVG not supported

Login to reply

👍?
helpful
8:06am Wed 28th Aug, Christopher M.

ANONYMOUS wrote:
> Does this mean that you do not need to validate any identifiers as an expression could be an identifier from the syntax outline posted:
You do not need to validate expressions, thus you do not need to detect or report an error as in x <- double + * 2 However, you will need to locate any identifiers within expressions, such as double above, - depending on your implementation of storing and managing the names and roles of identifiers.

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